You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
530 B
Protocol Buffer

syntax = "proto3";
package grpc;
option go_package = "internal/pkg/grpc";
service deviceInfo {
// serves basic device information
// used by both controllers/sensors
rpc DeviceName(stream DeviceName) returns (stream DeviceName);
rpc DeviceStatus(stream DeviceStatus) returns (stream DeviceStatus);
}
message DeviceName {
int32 Address = 1;
string Name = 2;
}
enum Status {
DEAD = 0;
ALIVE = 1;
UNKNOWN = 2;
}
message DeviceStatus {
int32 addr = 1;
Status status = 2;
}