From 19141cc0e1c6bf0881a1db31f497234bf0aed982 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sat, 8 Apr 2023 08:18:36 -0500 Subject: [PATCH 1/3] Client only device profile --- meshtastic/clientonly.options | 3 +++ meshtastic/clientonly.proto | 44 +++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 meshtastic/clientonly.options create mode 100644 meshtastic/clientonly.proto diff --git a/meshtastic/clientonly.options b/meshtastic/clientonly.options new file mode 100644 index 0000000..f75f893 --- /dev/null +++ b/meshtastic/clientonly.options @@ -0,0 +1,3 @@ +*DeviceProfile.channels max_count:8 +*DeviceProfile.long_name max_size:40 +*DeviceProfile.short_name max_size:5 \ No newline at end of file diff --git a/meshtastic/clientonly.proto b/meshtastic/clientonly.proto new file mode 100644 index 0000000..c7c52b6 --- /dev/null +++ b/meshtastic/clientonly.proto @@ -0,0 +1,44 @@ +syntax = "proto3"; + +package meshtastic; + +option java_package = "com.geeksville.mesh"; +option java_outer_classname = "ClientOnlyProtos"; +option go_package = "github.com/meshtastic/go/generated"; +option csharp_namespace = "Meshtastic.Protobufs"; +option swift_prefix = ""; + + +import "meshtastic/channel.proto"; +import "meshtastic/localonly.proto"; + +/* + * This abstraction is used to contain any configuration for provisioning a node on any client. + * It is useful for importing and exporting configurations. + */ +message DeviceProfile { + /* + * Long name for the node + */ + optional string long_name = 1; + + /* + * Short name of the node + */ + optional string short_name = 2; + + /* + * The channels our node knows about + */ + repeated Channel channels = 3; + + /* + * The Config of the node + */ + optional LocalConfig config = 4; + + /* + * The ModuleConfig of the node + */ + optional LocalModuleConfig module_config = 5; +} \ No newline at end of file From e710183a47ba5606e2b3c60c19a553e19d62565c Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sat, 8 Apr 2023 08:55:52 -0500 Subject: [PATCH 2/3] Let's just use string channel_url --- meshtastic/clientonly.options | 1 - meshtastic/clientonly.proto | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/meshtastic/clientonly.options b/meshtastic/clientonly.options index f75f893..bc98b39 100644 --- a/meshtastic/clientonly.options +++ b/meshtastic/clientonly.options @@ -1,3 +1,2 @@ -*DeviceProfile.channels max_count:8 *DeviceProfile.long_name max_size:40 *DeviceProfile.short_name max_size:5 \ No newline at end of file diff --git a/meshtastic/clientonly.proto b/meshtastic/clientonly.proto index c7c52b6..6cd1427 100644 --- a/meshtastic/clientonly.proto +++ b/meshtastic/clientonly.proto @@ -28,9 +28,9 @@ message DeviceProfile { optional string short_name = 2; /* - * The channels our node knows about + * The url of the channels from our node */ - repeated Channel channels = 3; + optional string channel_url = 3; /* * The Config of the node From b71a0cc2ba4f7690d3fd92803979988328c7cda0 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sat, 8 Apr 2023 08:58:08 -0500 Subject: [PATCH 3/3] Unused --- meshtastic/clientonly.proto | 1 - 1 file changed, 1 deletion(-) diff --git a/meshtastic/clientonly.proto b/meshtastic/clientonly.proto index 6cd1427..7b353a8 100644 --- a/meshtastic/clientonly.proto +++ b/meshtastic/clientonly.proto @@ -9,7 +9,6 @@ option csharp_namespace = "Meshtastic.Protobufs"; option swift_prefix = ""; -import "meshtastic/channel.proto"; import "meshtastic/localonly.proto"; /*