support new protobufs

This commit is contained in:
geeksville
2020-05-12 10:58:41 -07:00
parent 53e9fae39f
commit bfa2d97e43
5 changed files with 79 additions and 49 deletions

View File

@@ -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)