Skip to content

Commit 152abbf

Browse files
committed
Comment on SNR special values in RouteDiscovery to signal different hop types
1 parent cb1f893 commit 152abbf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

meshtastic/mesh.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,10 @@ message RouteDiscovery {
975975

976976
/*
977977
* The list of SNRs (in dB, scaled by 4) in the route towards the destination.
978+
* Special values (ouside normal SNR range) are used as flags:
979+
* -128 : Unknonw SNR
980+
* -127 : MQTT hop
981+
* 127 : UDP hop
978982
*/
979983
repeated int32 snr_towards = 2;
980984

@@ -985,6 +989,10 @@ message RouteDiscovery {
985989

986990
/*
987991
* The list of SNRs (in dB, scaled by 4) in the route back from the destination.
992+
* Special values (ouside normal SNR range) are used as flags:
993+
* -128 : Unknonw SNR
994+
* -127 : MQTT hop
995+
* 127 : UDP hop
988996
*/
989997
repeated int32 snr_back = 4;
990998
}

0 commit comments

Comments
 (0)