forked from meshtastic/protobufs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.proto
255 lines (202 loc) · 4.49 KB
/
config.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
syntax = "proto3";
import "telemetry.proto";
option java_package = "com.geeksville.mesh";
option java_outer_classname = "ConfigProtos";
option optimize_for = LITE_RUNTIME;
option go_package = "github.com/meshtastic/gomeshproto";
message Config {
/*
* TODO: REPLACE
*/
message DeviceConfig {
}
/*
* TODO: REPLACE
*/
message GpsConfig {
}
/*
* TODO: REPLACE
*/
message PowerConfig {
}
/*
* TODO: REPLACE
*/
message WiFiConfig {
/*
* If set, this node will try to join the specified wifi network and
* acquire an address via DHCP
*/
string wifi_ssid = 1;
/*
* If set, will be use to authenticate to the named wifi
*/
string wifi_password = 2;
/*
* If set, the node will operate as an AP (and DHCP server), otherwise it
* will be a station
*/
bool wifi_ap_mode = 3;
}
/*
* TODO: REPLACE
*/
message DisplayConfig {
}
/*
* TODO: REPLACE
*/
message LoRaConfig {
}
/*
* TODO: REPLACE
*/
message ModuleConfig {
/*
* TODO: REPLACE
*/
message MQTTConfig {
}
/*
* TODO: REPLACE
*/
message SerialConfig {
}
/*
* TODO: REPLACE
*/
message ExternalNotificationConfig {
}
/*
* TODO: REPLACE
*/
message StoreForwardConfig {
}
/*
* TODO: REPLACE
*/
message RangeTestConfig {
}
/*
* Configuration for both device and environment metrics
*/
message TelemetryConfig {
/*
* Interval in seconds of how often we should try to send our
* device measurements to the mesh
*/
uint32 device_update_interval = 1;
/*
* Interval in seconds of how often we should try to send our
* environment measurements to the mesh
*/
uint32 environment_update_interval = 2;
/*
* Preferences for the Telemetry Module (Environment)
* Enable/Disable the telemetry measurement module measurement collection
*/
bool environment_measurement_enabled = 3;
/*
* Enable/Disable the telemetry measurement module on-device display
*/
bool environment_screen_enabled = 4;
/*
* Sometimes sensor reads can fail.
* If this happens, we will retry a configurable number of attempts,
* each attempt will be delayed by the minimum required refresh rate for that sensor
*/
uint32 environment_read_error_count_threshold = 5;
/*
* Sometimes we can end up with more than read_error_count_threshold failures.
* In this case, we will stop trying to read from the sensor for a while.
* Wait this long until trying to read from the sensor again
*/
uint32 environment_recovery_interval = 6;
/*
* We'll always read the sensor in Celsius, but sometimes we might want to
* display the results in Fahrenheit as a "user preference".
*/
bool environment_display_fahrenheit = 7;
/*
* Specify the sensor type
*/
TelemetrySensorType environment_sensor_type = 8;
/*
* Specify the peferred GPIO Pin for sensor readings
*/
uint32 environment_sensor_pin = 9;
}
/*
* TODO: REPLACE
*/
message CannedMessageConfig {
}
/*
* TODO: REPLACE
*/
oneof payloadVariant {
/*
* TODO: REPLACE
*/
MQTTConfig mqtt_config = 1;
/*
* TODO: REPLACE
*/
SerialConfig serial_config = 2;
/*
* TODO: REPLACE
*/
ExternalNotificationConfig external_notification_config = 3;
/*
* TODO: REPLACE
*/
StoreForwardConfig store_forward_config = 4;
/*
* TODO: REPLACE
*/
RangeTestConfig range_test_config = 5;
/*
* TODO: REPLACE
*/
TelemetryConfig telemetry_config = 6;
/*
* TODO: REPLACE
*/
CannedMessageConfig canned_message_config = 7;
}
}
/*
* TODO: REPLACE
*/
oneof payloadVariant {
/*
* TODO: REPLACE
*/
DeviceConfig device_config = 1;
/*
* TODO: REPLACE
*/
GpsConfig gps_config = 2;
/*
* TODO: REPLACE
*/
PowerConfig power_config = 3;
/*
* TODO: REPLACE
*/
WiFiConfig wifi_config = 4;
/*
* TODO: REPLACE
*/
DisplayConfig display_config = 5;
/*
* TODO: REPLACE
*/
LoRaConfig lora_config = 6;
/*
* TODO: REPLACE
*/
ModuleConfig module_config = 7;
}
}