2019-11-11 11:28:52 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
|
|
|
|
package NucuCarSensorsProto;
|
|
|
|
|
|
|
|
// General
|
|
|
|
enum SensorStateEnum {
|
|
|
|
Error = 0;
|
|
|
|
Uninitialized = 1;
|
|
|
|
Initialized = 2;
|
2019-11-24 16:03:46 +00:00
|
|
|
Disabled = 3;
|
2019-11-11 11:28:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Environment Sensor
|
|
|
|
service EnvironmentSensorGrpcService {
|
2019-12-06 22:31:28 +00:00
|
|
|
rpc GetMeasurement(google.protobuf.Empty) returns (NucuCarSensorResponse) {}
|
2019-11-11 11:28:52 +00:00
|
|
|
}
|
|
|
|
|
2020-02-02 14:19:53 +00:00
|
|
|
// Health Sensor
|
2020-02-01 15:42:39 +00:00
|
|
|
service HealthSensorGrpcService {
|
|
|
|
rpc GetCpuTemperature(google.protobuf.Empty) returns (NucuCarSensorResponse) {}
|
|
|
|
}
|
|
|
|
|
2021-04-25 15:40:56 +00:00
|
|
|
// Pms5003 Sensor
|
|
|
|
service Pms5003SensorGrpcService {
|
|
|
|
rpc GetMeasurement(google.protobuf.Empty) returns (NucuCarSensorResponse) {}
|
|
|
|
}
|
|
|
|
|
2020-02-02 14:19:53 +00:00
|
|
|
// Responses
|
2019-12-06 22:31:28 +00:00
|
|
|
message NucuCarSensorResponse {
|
|
|
|
SensorStateEnum State = 1;
|
|
|
|
string JsonData = 2;
|
2019-11-11 11:28:52 +00:00
|
|
|
}
|