-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtt.proto
149 lines (145 loc) · 5.33 KB
/
tt.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// Copyright 2017 Inca Roads LLC. All rights reserved.
// Use of this source code is governed by licenses granted by the
// copyright holder including that found in the LICENSE file.
syntax = "proto2";
package ttproto;
message Telecast {
enum deviceType {
UNKNOWN_DEVICE_TYPE = 0;
BGEIGIE_NANO = 1;
SOLARCAST = 2;
TTAPP = 3;
TTNODE = 4;
TTGATE = 5;
TTSERVE = 6;
TTGATEPING = 7;
}
optional deviceType device_type = 1;
optional string DEPRECATED2017FEBDeviceIDString = 2;
// This field is actually REQUIRED by ttserve
optional uint32 device_id = 3;
optional string message = 4;
optional string captured_at = 5;
enum replyType {
NO_REPLY = 0;
ALLOWED = 1;
}
optional replyType reply_type = 6;
optional uint32 DEPRECATED2017FEBValue = 7;
optional float latitude = 8;
optional float longitude = 9;
optional int32 altitude = 10;
optional float bat_voltage = 11;
optional float bat_soc = 12;
optional float wireless_snr = 13;
optional float env_temp = 14;
optional float env_humid = 15;
optional uint32 relay_device1 = 16;
optional uint32 relay_device2 = 17;
optional uint32 relay_device3 = 18;
optional uint32 relay_device4 = 19;
optional uint32 relay_device5 = 20;
optional uint32 lnd_7318u = 21;
optional uint32 lnd_7128ec = 22;
optional uint32 stats_uptime_minutes = 23;
optional string stats_app_version = 24;
optional string stats_device_params = 25;
optional uint32 stats_transmitted_bytes = 26;
optional uint32 stats_received_bytes = 27;
optional uint32 stats_oneshots = 28;
optional uint32 stats_comms_resets = 29;
optional uint32 pms_pm01_0 = 30;
optional uint32 pms_pm02_5 = 31;
optional uint32 pms_pm10_0 = 32;
optional uint32 pms_c00_30 = 33;
optional uint32 pms_c00_50 = 34;
optional uint32 pms_c01_00 = 35;
optional uint32 pms_c02_50 = 36;
optional uint32 pms_c05_00 = 37;
optional uint32 pms_c10_00 = 38;
optional uint32 pms_csecs = 39;
optional float opc_pm01_0 = 40;
optional float opc_pm02_5 = 41;
optional float opc_pm10_0 = 42;
optional uint32 opc_c00_38 = 43;
optional uint32 opc_c00_54 = 44;
optional uint32 opc_c01_00 = 45;
optional uint32 opc_c02_10 = 46;
optional uint32 opc_c05_00 = 47;
optional uint32 opc_c10_00 = 48;
optional uint32 opc_csecs = 49;
optional float env_pressure = 50;
optional uint32 stats_comms_power_fails = 51;
optional float bat_current = 52;
optional string stats_iccid = 53;
optional uint32 stats_motion_events = 54;
optional string stats_dfu = 55;
optional uint32 captured_at_date = 56;
optional uint32 captured_at_time = 57;
optional uint32 captured_at_offset = 58;
optional uint32 stats_oneshot_seconds = 59;
optional uint32 stamp = 60;
optional uint32 stamp_version = 61;
optional string stats_cpsi = 62;
optional uint32 stats_uptime_days = 63;
optional string stats_device_label = 64;
optional string stats_gps_params = 65;
optional string stats_service_params = 66;
optional string stats_ttn_params = 67;
optional string stats_sensor_params = 68;
optional uint32 lnd_7318c = 69;
optional string stats_battery = 70;
optional string stats_module_fona = 71;
optional string stats_module_lora = 72;
optional bool motion = 73;
optional bool test = 74;
optional float enc_temp = 75;
optional float enc_humid = 76;
optional float enc_pressure = 77;
optional uint32 errors_opc = 78;
optional uint32 errors_pms = 79;
optional uint32 errors_bme0 = 80;
optional uint32 errors_bme1 = 81;
optional uint32 errors_lora = 82;
optional uint32 errors_fona = 83;
optional uint32 errors_geiger = 84;
optional uint32 errors_max01 = 85;
optional uint32 errors_ugps = 86;
optional uint32 errors_twi = 87;
optional string errors_twi_info = 88;
optional uint32 errors_lis = 89;
optional uint32 errors_spi = 90;
optional uint32 errors_connect_lora = 91;
optional uint32 errors_connect_fona = 92;
optional uint32 errors_connect_wireless = 93;
optional uint32 errors_connect_data = 94;
optional uint32 errors_connect_service = 95;
optional uint32 motion_began_offset = 96;
optional uint32 errors_connect_gateway = 97;
optional uint32 stats_comms_ant_fails = 98;
optional uint32 lnd_712u = 99;
optional uint32 lnd_78017w = 100;
optional uint32 stats_overcurrent_events = 101;
optional float pms_std01_0 = 102;
optional float pms_std02_5 = 103;
optional float pms_std10_0 = 104;
optional float opc_std01_0 = 105;
optional float opc_std02_5 = 106;
optional float opc_std10_0 = 107;
optional uint32 errors_mtu = 108;
optional uint32 stats_seqno = 109;
optional uint32 pms2_pm01_0 = 110;
optional uint32 pms2_pm02_5 = 111;
optional uint32 pms2_pm10_0 = 112;
optional uint32 pms2_c00_30 = 113;
optional uint32 pms2_c00_50 = 114;
optional uint32 pms2_c01_00 = 115;
optional uint32 pms2_c02_50 = 116;
optional uint32 pms2_c05_00 = 117;
optional uint32 pms2_c10_00 = 118;
optional uint32 pms2_csecs = 119;
optional uint32 errors_pms2 = 120;
optional float pms2_std01_0 = 121;
optional float pms2_std02_5 = 122;
optional float pms2_std10_0 = 123;
}