mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
Room server support
This commit is contained in:
parent
84d3b45085
commit
d8d31652d2
1 changed files with 5 additions and 1 deletions
6
mccli.py
6
mccli.py
|
|
@ -314,7 +314,11 @@ class MeshCore:
|
|||
res["path_len"] = data[7]
|
||||
res["txt_type"] = data[8]
|
||||
res["sender_timestamp"] = int.from_bytes(data[9:13], byteorder='little')
|
||||
res["text"] = data[13:].decode()
|
||||
if data[8] == 2 : # signed packet
|
||||
res["signature"] = data[13:17].hex()
|
||||
res["text"] = data[17:].decode()
|
||||
else :
|
||||
res["text"] = data[13:].decode()
|
||||
self.result.set_result(res)
|
||||
case 8 : # chanel msg recv
|
||||
res = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue