mirror of
https://github.com/meshtastic/python.git
synced 2026-04-23 08:17:38 -04:00
support new protobufs
This commit is contained in:
@@ -23,7 +23,7 @@ def onReceive(packet, interface):
|
||||
print(f"From {interface.devPath}: {packet}")
|
||||
p = DotMap(packet)
|
||||
|
||||
if p.payload.data.typ == "CLEAR_TEXT":
|
||||
if p.decoded.data.typ == "CLEAR_TEXT":
|
||||
# We only care a about clear text packets
|
||||
receivedPackets.append(p)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user