From da22c442b3d13fad02de3b04d4dd6c4f2480b25b Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sun, 26 Nov 2023 06:53:52 -0600 Subject: [PATCH 1/2] Add role to NodeInfo/Lite --- meshtastic/deviceonly.proto | 5 +++++ meshtastic/mesh.proto | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/meshtastic/deviceonly.proto b/meshtastic/deviceonly.proto index 4f6b9a9..75f9913 100644 --- a/meshtastic/deviceonly.proto +++ b/meshtastic/deviceonly.proto @@ -116,6 +116,11 @@ message NodeInfoLite { * local channel index we heard that node on. Only populated if its not the default channel. */ uint32 channel = 7; + + /* + * Indicates that the device's role in the mesh + */ + Config.DeviceConfig.Role role = 8; } /* diff --git a/meshtastic/mesh.proto b/meshtastic/mesh.proto index e8eda53..4d7542c 100644 --- a/meshtastic/mesh.proto +++ b/meshtastic/mesh.proto @@ -1046,6 +1046,11 @@ message NodeInfo { * local channel index we heard that node on. Only populated if its not the default channel. */ uint32 channel = 7; + + /* + * Indicates that the device's role in the mesh + */ + Config.DeviceConfig.Role role = 8; } /* From 371d76d9eea0705e916ce2d093efc6e9ad5d2b2b Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sun, 26 Nov 2023 08:17:50 -0600 Subject: [PATCH 2/2] Config include --- meshtastic/deviceonly.proto | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meshtastic/deviceonly.proto b/meshtastic/deviceonly.proto index 75f9913..864b4b1 100644 --- a/meshtastic/deviceonly.proto +++ b/meshtastic/deviceonly.proto @@ -7,6 +7,7 @@ import "meshtastic/localonly.proto"; import "meshtastic/mesh.proto"; import "meshtastic/telemetry.proto"; import "meshtastic/module_config.proto"; +import "meshtastic/config.proto"; option csharp_namespace = "Meshtastic.Protobufs"; option go_package = "github.com/meshtastic/go/generated"; @@ -116,7 +117,7 @@ message NodeInfoLite { * local channel index we heard that node on. Only populated if its not the default channel. */ uint32 channel = 7; - + /* * Indicates that the device's role in the mesh */