Skip to content

Commit

Permalink
Merge pull request #456 from meshtastic/nodeinfo-routing-fields
Browse files Browse the repository at this point in the history
Add via_mqtt and hops_away to NodeInfo/Lite
  • Loading branch information
thebentern committed Mar 2, 2024
2 parents 1e85de9 + 7ebbc39 commit 62b7d8b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meshtastic/deviceonly.options
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@

*DeviceState.node_remote_hardware_pins max_count:12

*NodeInfoLite.channel int_size:8
*NodeInfoLite.channel int_size:8
*NodeInfoLite.hops_away int_size:8
10 changes: 10 additions & 0 deletions meshtastic/deviceonly.proto
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ message NodeInfoLite {
* local channel index we heard that node on. Only populated if its not the default channel.
*/
uint32 channel = 7;

/*
* True if we witnessed the node over MQTT instead of LoRA transport
*/
bool via_mqtt = 8;

/*
* Number of hops away from us this node is (0 if adjacent)
*/
uint32 hops_away = 9;
}

/*
Expand Down
1 change: 1 addition & 0 deletions meshtastic/mesh.options
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*Data.payload max_size:237

*NodeInfo.channel int_size:8
*NodeInfo.hops_away int_size:8

# Big enough for 1.2.28.568032c-d
*MyNodeInfo.firmware_version max_size:18
Expand Down
10 changes: 10 additions & 0 deletions meshtastic/mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,16 @@ message NodeInfo {
* local channel index we heard that node on. Only populated if its not the default channel.
*/
uint32 channel = 7;

/*
* True if we witnessed the node over MQTT instead of LoRA transport
*/
bool via_mqtt = 8;

/*
* Number of hops away from us this node is (0 if adjacent)
*/
uint32 hops_away = 9;
}

/*
Expand Down

0 comments on commit 62b7d8b

Please sign in to comment.