Merge pull request #405 from meshtastic/add-role-nodeinfo

Add role to NodeInfo/Lite
This commit is contained in:
Ben Meadors 2023-11-26 13:07:16 -06:00 committed by GitHub
commit a0e94e01e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -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,6 +117,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;
}
/*

View file

@ -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;
}
/*