mirror of
https://github.com/meshtastic/python.git
synced 2026-04-23 00:07:02 -04:00
1.2.5 add hopLimit support and fix automatic text decoding
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user