From 152abbfed004075715cf82fedbfbd7005510f6c9 Mon Sep 17 00:00:00 2001 From: Fernando Nunes Date: Thu, 2 Apr 2026 12:43:25 +0100 Subject: [PATCH] Comment on SNR special values in RouteDiscovery to signal different hop types --- meshtastic/mesh.proto | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meshtastic/mesh.proto b/meshtastic/mesh.proto index 7206f4a..f0b0635 100644 --- a/meshtastic/mesh.proto +++ b/meshtastic/mesh.proto @@ -975,6 +975,10 @@ message RouteDiscovery { /* * The list of SNRs (in dB, scaled by 4) in the route towards the destination. + * Special values (ouside normal SNR range) are used as flags: + * -128 : Unknonw SNR + * -127 : MQTT hop + * 127 : UDP hop */ repeated int32 snr_towards = 2; @@ -985,6 +989,10 @@ message RouteDiscovery { /* * The list of SNRs (in dB, scaled by 4) in the route back from the destination. + * Special values (ouside normal SNR range) are used as flags: + * -128 : Unknonw SNR + * -127 : MQTT hop + * 127 : UDP hop */ repeated int32 snr_back = 4; }