pebble/third_party/nanopb/tests/regression/issue_522/uenum.proto
2025-01-27 11:38:16 -08:00

36 lines
510 B
Protocol Buffer

syntax = "proto3";
enum ReadingType {
UNKNOWN = 0;
TEMP = 1;
HUMIDITY = 2;
PRESSURE = 3;
CO2 = 4;
LIGHT = 5;
POWER = 6;
}
message Reading {
ReadingType readingType = 1;
float floatVal = 2;
}
message Lora {
float rssi = 1;
float frequency_error = 2;
float snr = 3;
}
message Meta {
int32 device_id = 1;
string device_type = 2;
float voltage = 3;
Lora lora = 4;
}
message Packet {
int32 packet_id = 1;
Meta meta = 2;
repeated Reading data = 3;
}