diff --git a/meshtastic/remote_hardware.py b/meshtastic/remote_hardware.py index 18d8a2b..13b9117 100644 --- a/meshtastic/remote_hardware.py +++ b/meshtastic/remote_hardware.py @@ -8,7 +8,7 @@ def onGPIOreceive(packet, interface): FIXME figure out how to do closures with methods in python""" pb = remote_hardware_pb2.HardwareMessage() - pb.ParseFromString(packet["decoded"]["data"]["payload"]) + pb.ParseFromString(packet["decoded"]["payload"]) print(f"Received RemoteHardware typ={pb.typ}, gpio_value={pb.gpio_value}")