diff --git a/TODO.md b/TODO.md index 5ee7618..bc86145 100644 --- a/TODO.md +++ b/TODO.md @@ -2,6 +2,7 @@ ## Before initial release +- add fromId and toId to received messages dictionaries - make docs decent - document properties/fields - include examples in readme. hello.py, textchat.py, replymessage.py diff --git a/meshtastic/interface.py b/meshtastic/interface.py index 33a0b58..5ebffeb 100644 --- a/meshtastic/interface.py +++ b/meshtastic/interface.py @@ -117,7 +117,7 @@ class MeshInterface: # we ignore the config_complete_id, it is unneeded for our stream API fromRadio.config_complete_id pub.sendMessage("meshtastic.connection.established") elif fromRadio.HasField("packet"): - self._handlePacketFromRadio(self, fromRadio.packet) + self._handlePacketFromRadio(fromRadio.packet) else: logging.warn("Unexpected FromRadio payload")