grpc regen

main
KeeganForelight 2 years ago
parent 11cb0df8c2
commit eaa4d3a2ff

@ -9,22 +9,8 @@ service monitoring {
message ReactorStatusResponse { message ReactorStatusResponse {
int32 id = 1; int32 id = 1;
repeated DeviceResponse deviceresponse = 2;
repeated SensorResponse sensorresponse = 3;
} }
message DeviceResponse {
int32 id = 1;
string name = 2;
map<string,string> updates = 3;
}
message SensorResponse {
int32 id = 1;
string name = 2;
int32 sampleRate = 3;
}
message ReactorStatusPing { message ReactorStatusPing {
int32 id = 1; int32 id = 1;
repeated Sensor sensors = 2; repeated Sensor sensors = 2;
@ -32,22 +18,22 @@ message ReactorStatusPing {
} }
enum Status { enum Status {
DEAD = 0; DEAD = 0; // connected but not responding
ALIVE = 1; ALIVE = 1; // actively responding
UNKOWN = 2; UNKOWN = 2; // Disconnected
} }
message Sensor { message Sensor {
int32 addr = 1; int32 addr = 1; // i2c addr
string name = 2; string name = 2; // use readable name, changable
Status status = 3; Status status = 3;
int32 sampleRate = 4; int32 sampleRate = 4; // in seconds
string data = 5; string data = 5; // open for any sort of format
} }
message Device { message Device {
int32 addr = 1; int32 addr = 1; // i2c addr used for ID
string name = 2; string name = 2; // user readable name, changable
Status status = 3; Status status = 3;
string data = 4; string data = 4; // any format
} }

Loading…
Cancel
Save