uenum.proto 510 B

123456789101112131415161718192021222324252627282930313233343536
  1. syntax = "proto3";
  2. enum ReadingType {
  3. UNKNOWN = 0;
  4. TEMP = 1;
  5. HUMIDITY = 2;
  6. PRESSURE = 3;
  7. CO2 = 4;
  8. LIGHT = 5;
  9. POWER = 6;
  10. }
  11. message Reading {
  12. ReadingType readingType = 1;
  13. float floatVal = 2;
  14. }
  15. message Lora {
  16. float rssi = 1;
  17. float frequency_error = 2;
  18. float snr = 3;
  19. }
  20. message Meta {
  21. int32 device_id = 1;
  22. string device_type = 2;
  23. float voltage = 3;
  24. Lora lora = 4;
  25. }
  26. message Packet {
  27. int32 packet_id = 1;
  28. Meta meta = 2;
  29. repeated Reading data = 3;
  30. }