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