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