mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
export ok
This commit is contained in:
parent
ee0b302d2e
commit
84d3b45085
1 changed files with 2 additions and 2 deletions
4
mccli.py
4
mccli.py
|
|
@ -330,7 +330,7 @@ class MeshCore:
|
|||
case 10: # no more msgs
|
||||
self.result.set_result(False)
|
||||
case 11: # contact
|
||||
self.result.set_result(data[1:].decode())
|
||||
self.result.set_result("meshcore://" + data[1:].hex())
|
||||
case 12: # battery voltage
|
||||
self.result.set_result(int.from_bytes(data[1:2], byteorder='little'))
|
||||
# push notifications
|
||||
|
|
@ -464,7 +464,7 @@ class MeshCore:
|
|||
data = b"\x10" + key
|
||||
return await self.send(data)
|
||||
|
||||
async def export_contact(self, key=""):
|
||||
async def export_contact(self, key=b""):
|
||||
data = b"\x11" + key
|
||||
return await self.send(data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue