Skip to content

Commit 2a3a67f

Browse files
authored
Merge pull request #645 from meshtastic/2.6
2.6 changes
2 parents e279015 + 79298fc commit 2a3a67f

5 files changed

Lines changed: 114 additions & 2 deletions

File tree

meshtastic/admin.proto

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,18 @@ message AdminMessage {
154154
PAXCOUNTER_CONFIG = 12;
155155
}
156156

157+
enum BackupLocation {
158+
/*
159+
* Backup to the internal flash
160+
*/
161+
FLASH = 0;
162+
163+
/*
164+
* Backup to the SD card
165+
*/
166+
SD = 1;
167+
}
168+
157169
/*
158170
* TODO: REPLACE
159171
*/
@@ -270,6 +282,20 @@ message AdminMessage {
270282
*/
271283
uint32 set_scale = 23;
272284

285+
/*
286+
* Backup the node's preferences
287+
*/
288+
BackupLocation backup_preferences = 24;
289+
290+
/*
291+
* Restore the node's preferences
292+
*/
293+
BackupLocation restore_preferences = 25;
294+
295+
/*
296+
* Remove backups of the node's preferences
297+
*/
298+
BackupLocation remove_backup_preferences = 26;
273299
/*
274300
* Set the owner for this node
275301
*/

meshtastic/device_ui.options

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
*NodeFilter.hops_away int_size:8
77
*NodeFilter.channel int_size:8
88
*NodeHighlight.node_name max_size:16
9+
*GeoPoint.zoom int_size:8
10+
*Map.style max_size:20

meshtastic/device_ui.proto

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ message DeviceUIConfig {
6666
* 8 integers for screen calibration data
6767
*/
6868
bytes calibration_data = 14;
69+
70+
/*
71+
* Map related data
72+
*/
73+
Map map_data = 15;
6974
}
7075

7176

@@ -135,6 +140,40 @@ message NodeHighlight {
135140

136141
}
137142

143+
message GeoPoint {
144+
/*
145+
* Zoom level
146+
*/
147+
int32 zoom = 1;
148+
149+
/*
150+
* Coordinate: latitude
151+
*/
152+
int32 latitude = 2;
153+
154+
/*
155+
* Coordinate: longitude
156+
*/
157+
int32 longitude = 3;
158+
}
159+
160+
message Map {
161+
/*
162+
* Home coordinates
163+
*/
164+
GeoPoint home = 1;
165+
166+
/*
167+
* Map tile style
168+
*/
169+
string style = 2;
170+
171+
/*
172+
* Map scroll follows GPS
173+
*/
174+
bool follow_gps = 3;
175+
}
176+
138177
enum Theme {
139178
/*
140179
* Dark

meshtastic/deviceonly.proto

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import "meshtastic/channel.proto";
66
import "meshtastic/mesh.proto";
77
import "meshtastic/telemetry.proto";
88
import "meshtastic/config.proto";
9+
import "meshtastic/localonly.proto";
910
import "nanopb.proto";
1011

1112
option csharp_namespace = "Meshtastic.Protobufs";
@@ -221,11 +222,20 @@ message DeviceState {
221222
* The mesh's nodes with their available gpio pins for RemoteHardware module
222223
*/
223224
repeated NodeRemoteHardwarePin node_remote_hardware_pins = 13;
225+
}
226+
227+
message NodeDatabase {
228+
/*
229+
* A version integer used to invalidate old save files when we make
230+
* incompatible changes This integer is set at build time and is private to
231+
* NodeDB.cpp in the device code.
232+
*/
233+
uint32 version = 1;
224234

225235
/*
226236
* New lite version of NodeDB to decrease memory footprint
227237
*/
228-
repeated NodeInfoLite node_db_lite = 14 [(nanopb).callback_datatype = "std::vector<meshtastic_NodeInfoLite>"];
238+
repeated NodeInfoLite nodes = 2 [(nanopb).callback_datatype = "std::vector<meshtastic_NodeInfoLite>"];
229239
}
230240

231241
/*
@@ -244,3 +254,38 @@ message ChannelFile {
244254
*/
245255
uint32 version = 2;
246256
}
257+
258+
/*
259+
* The on-disk backup of the node's preferences
260+
*/
261+
message BackupPreferences {
262+
/*
263+
* The version of the backup
264+
*/
265+
uint32 version = 1;
266+
267+
/*
268+
* The timestamp of the backup (if node has time)
269+
*/
270+
fixed32 timestamp = 2;
271+
272+
/*
273+
* The node's configuration
274+
*/
275+
LocalConfig config = 3;
276+
277+
/*
278+
* The node's module configuration
279+
*/
280+
LocalModuleConfig module_config = 4;
281+
282+
/*
283+
* The node's channels
284+
*/
285+
ChannelFile channels = 5;
286+
287+
/*
288+
* The node's user (owner) information
289+
*/
290+
User owner = 6;
291+
}

meshtastic/module_config.options

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
*MQTTConfig.address max_size:64
44
*MQTTConfig.username max_size:64
5-
*MQTTConfig.password max_size:64
5+
*MQTTConfig.password max_size:32
66
*MQTTConfig.root max_size:32
77

88
*AudioConfig.ptt_pin int_size:8

0 commit comments

Comments
 (0)