mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
implement new return codes
This commit is contained in:
parent
bee51fed55
commit
a9f753750f
1 changed files with 4 additions and 0 deletions
4
mccli.py
4
mccli.py
|
|
@ -148,6 +148,10 @@ class MeshCore:
|
||||||
res["sender_timestamp"] = int.from_bytes(data[9:13], byteorder='little')
|
res["sender_timestamp"] = int.from_bytes(data[9:13], byteorder='little')
|
||||||
res["text"] = data[13:].decode()
|
res["text"] = data[13:].decode()
|
||||||
self.result.set_result(res)
|
self.result.set_result(res)
|
||||||
|
case 9: # current time
|
||||||
|
self.result.set_result(int.from_bytes(data[1:5], byteorder='little'))
|
||||||
|
case 10: # no more msgs
|
||||||
|
self.result.set_result(False)
|
||||||
# push notifications
|
# push notifications
|
||||||
case 0x80:
|
case 0x80:
|
||||||
print ("Advertisment received")
|
print ("Advertisment received")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue