mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 11:56:18 +00:00
set custom vars
This commit is contained in:
@@ -320,7 +320,7 @@ class CommandHandler:
|
||||
|
||||
async def set_custom_var(self, key, value) -> Event:
|
||||
logger.debug(f"Setting custom var {key} to {value}")
|
||||
data = b"\x29" + key.encode("utf-8") + ":" + value.encode("utf-8")
|
||||
data = b"\x29" + key.encode("utf-8") + b":" + value.encode("utf-8")
|
||||
return await self.send(data, [EventType.OK, EventType.ERROR])
|
||||
|
||||
async def send_cli(self, cmd) -> Event:
|
||||
|
||||
Reference in New Issue
Block a user