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

Add role to NodeInfo/Lite
pull/406/head
Ben Meadors 2023-11-26 13:07:16 -06:00 zatwierdzone przez GitHub
commit a0e94e01e5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

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

Wyświetl plik

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