Skip to content

Commit 17c8fe7

Browse files
committed
logout command
1 parent 5fd4db6 commit 17c8fe7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/meshcore/meshcore.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,11 @@ async def wait_login(self, timeout = 5):
348348
printerr ("Timeout ...")
349349
return False
350350

351+
async def send_logout(self, dst):
352+
self.login_resp = asyncio.Future()
353+
data = b"\x1d" + dst + pwd.encode("ascii")
354+
return await self.send(data)
355+
351356
async def send_statusreq(self, dst):
352357
self.status_resp = asyncio.Future()
353358
data = b"\x1b" + dst

0 commit comments

Comments
 (0)