receive messages publish works

This commit is contained in:
geeksville
2020-04-28 11:17:48 -07:00
parent d46d1d1c98
commit d578166fbf
2 changed files with 2 additions and 1 deletions

View File

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

View File

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