meshtastic / protobufs

Protobuf definitions for the Meshtastic project
https://meshtastic.org
GNU General Public License v3.0
73 stars 107 forks source link

Add hopStart to MeshPacket #454

Closed GUVWAF closed 4 months ago

GUVWAF commented 4 months ago

In order to implement RFC https://github.com/meshtastic/rfcs/pull/8 and corresponding firmware issue https://github.com/meshtastic/firmware/issues/3239.

With this clients can use the following pseudocode when receiving a packet to display routing information:

if (hopStart != 0 && (hopStart-hopLimit !=0)):
    displayHopsAway(hopStart-hopLimit) 
else: 
    displayRSSIandSNR()

Note that unlike SNR, the amount of hops is not (yet) in the NodeInfo, but can be updated for each received packet.