From d578166fbffdac638c92b67aeb1970c5bcacc1b5 Mon Sep 17 00:00:00 2001 From: geeksville Date: Tue, 28 Apr 2020 11:17:48 -0700 Subject: [PATCH] receive messages publish works --- TODO.md | 1 + meshtastic/interface.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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")