From da22c442b3d13fad02de3b04d4dd6c4f2480b25b Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sun, 26 Nov 2023 06:53:52 -0600 Subject: [PATCH] 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; } /*