NucuCar/NucuCar.Sensors/Protos/NucuCarSensors.proto
2019-11-10 16:02:50 +02:00

20 lines
No EOL
478 B
Protocol Buffer

syntax = "proto3";
import "google/protobuf/empty.proto";
package NucuCarGrpcSensors;
service EnvironmentSensorGrpcService {
rpc GetSensorState(google.protobuf.Empty) returns (NucuCarSensorState) {}
rpc GetSensorMeasurement(google.protobuf.Empty) returns (EnvironmentSensorMeasurement) {}
}
message EnvironmentSensorMeasurement {
double temperature = 1;
double pressure = 2;
double humidity = 3;
double voc = 4;
}
message NucuCarSensorState {
int32 state = 1;
}