From 91f73d032691008cae84965a6b3e733d0da2ed4f Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sun, 23 Feb 2025 06:25:35 -0600 Subject: [PATCH 1/2] Add container messages for backup prefs --- meshtastic/deviceonly.proto | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/meshtastic/deviceonly.proto b/meshtastic/deviceonly.proto index 8bb4603..43ecb0e 100644 --- a/meshtastic/deviceonly.proto +++ b/meshtastic/deviceonly.proto @@ -6,6 +6,7 @@ import "meshtastic/channel.proto"; import "meshtastic/mesh.proto"; import "meshtastic/telemetry.proto"; import "meshtastic/config.proto"; +import "meshtastic/localonly.proto"; import "nanopb.proto"; option csharp_namespace = "Meshtastic.Protobufs"; @@ -251,4 +252,34 @@ message ChannelFile { * NodeDB.cpp in the device code. */ uint32 version = 2; +} + +/* + * The on-disk backup of the node's preferences + */ + message BackupPrefs { + /* + * The version of the backup + */ + uint32 version = 1; + + /* + * The node's configuration + */ + LocalConfig config = 2; + + /* + * The node's module configuration + */ + LocalModuleConfig module_config = 3; + + /* + * The node's channels + */ + ChannelFile channels = 4; + + /* + * The node's user (owner) information + */ + User owner = 5; } \ No newline at end of file From 8b87eac4db0899d54eb11501b2a1ac76cefad6ec Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sun, 23 Feb 2025 06:52:34 -0600 Subject: [PATCH 2/2] Name --- meshtastic/deviceonly.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/deviceonly.proto b/meshtastic/deviceonly.proto index 43ecb0e..bb57843 100644 --- a/meshtastic/deviceonly.proto +++ b/meshtastic/deviceonly.proto @@ -257,7 +257,7 @@ message ChannelFile { /* * The on-disk backup of the node's preferences */ - message BackupPrefs { + message BackupPreferences { /* * The version of the backup */