Skip to content

Commit 9c1bf5b

Browse files
committed
Move nodedb to it's own message (and file)
1 parent 76f806e commit 9c1bf5b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

meshtastic/deviceonly.proto

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,20 @@ message DeviceState {
220220
* The mesh's nodes with their available gpio pins for RemoteHardware module
221221
*/
222222
repeated NodeRemoteHardwarePin node_remote_hardware_pins = 13;
223+
}
224+
225+
message NodeDatabase {
226+
/*
227+
* A version integer used to invalidate old save files when we make
228+
* incompatible changes This integer is set at build time and is private to
229+
* NodeDB.cpp in the device code.
230+
*/
231+
uint32 version = 1;
223232

224233
/*
225234
* New lite version of NodeDB to decrease memory footprint
226235
*/
227-
repeated NodeInfoLite node_db_lite = 14 [(nanopb).callback_datatype = "std::vector<meshtastic_NodeInfoLite>"];
236+
repeated NodeInfoLite nodes = 2 [(nanopb).callback_datatype = "std::vector<meshtastic_NodeInfoLite>"];
228237
}
229238

230239
/*

0 commit comments

Comments
 (0)