diff --git a/meshtastic/__init__.py b/meshtastic/__init__.py index ef519f4..5812c7e 100644 --- a/meshtastic/__init__.py +++ b/meshtastic/__init__.py @@ -162,7 +162,7 @@ class MeshInterface: elif destinationId == BROADCAST_ADDR: nodeNum = BROADCAST_NUM else: - nodeNum = self.nodes[destinationId].num + nodeNum = self.nodes[destinationId]['num'] meshPacket.to = nodeNum meshPacket.want_ack = wantAck