MQTT Logic for ping

This commit is contained in:
SpudGunMan
2024-12-12 22:44:24 -08:00
parent fa802ba313
commit a9c2660ec1
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -1019,6 +1019,9 @@ def onReceive(packet, interface):
if hop_start == hop_limit:
hop = "Direct"
hop_count = 0
elif hop_start == 0 and hop_limit > 0:
hop = "MQTT"
hop_count = 0
else:
# set hop to Direct if the message was sent directly otherwise set the hop count
if hop_away > 0:
+3
View File
@@ -229,6 +229,9 @@ def onReceive(packet, interface):
if hop_start == hop_limit:
hop = "Direct"
hop_count = 0
elif hop_start == 0 and hop_limit > 0:
hop = "MQTT"
hop_count = 0
else:
# set hop to Direct if the message was sent directly otherwise set the hop count
if hop_away > 0: