mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
Fixed issue with chan messages, waited for MSG_SENT instead of OK
This commit is contained in:
parent
c6966230f9
commit
3db73a8883
3 changed files with 3 additions and 3 deletions
|
|
@ -304,7 +304,7 @@ class CommandHandler:
|
|||
timestamp = int(time.time()).to_bytes(4, 'little')
|
||||
|
||||
data = b"\x03\x00" + chan.to_bytes(1, 'little') + timestamp + msg.encode("ascii")
|
||||
return await self.send(data, [EventType.MSG_SENT, EventType.ERROR])
|
||||
return await self.send(data, [EventType.OK, EventType.ERROR])
|
||||
|
||||
async def send_cli(self, cmd) -> Event:
|
||||
logger.debug(f"Sending CLI command: {cmd}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue