mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
logout command
This commit is contained in:
parent
5fd4db660d
commit
17c8fe776f
1 changed files with 5 additions and 0 deletions
|
|
@ -348,6 +348,11 @@ class MeshCore:
|
|||
printerr ("Timeout ...")
|
||||
return False
|
||||
|
||||
async def send_logout(self, dst):
|
||||
self.login_resp = asyncio.Future()
|
||||
data = b"\x1d" + dst + pwd.encode("ascii")
|
||||
return await self.send(data)
|
||||
|
||||
async def send_statusreq(self, dst):
|
||||
self.status_resp = asyncio.Future()
|
||||
data = b"\x1b" + dst
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue