1.2.5 add hopLimit support and fix automatic text decoding

This commit is contained in:
Kevin Hester
2021-03-06 14:27:49 +08:00
parent 9e5a5a0c74
commit 087b7563e7
5 changed files with 53 additions and 20 deletions

View File

@@ -53,7 +53,7 @@ def onReceive(packet, interface):
if sendingInterface == interface:
print("Ignoring sending interface")
else:
print(f"From {interface.stream.port}: {packet}")
# print(f"From {interface.stream.port}: {packet}")
p = DotMap(packet)
if p.decoded.portnum == "TEXT_MESSAGE_APP":
@@ -227,7 +227,7 @@ def testAll():
if sendingInterface == interface:
print("Ignoring sending interface")
else:
print(f"From {interface.stream.port}: {packet}")
# print(f"From {interface.stream.port}: {packet}")
p = DotMap(packet)
if p.decoded.portnum == "TEXT_MESSAGE_APP":