mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
import_private_key
This commit is contained in:
parent
01661a9654
commit
6579efe6b4
2 changed files with 6 additions and 1 deletions
|
|
@ -206,6 +206,11 @@ class DeviceCommands(CommandHandlerBase):
|
|||
logger.debug("Requesting private key export")
|
||||
return await self.send(b"\x17", [EventType.PRIVATE_KEY, EventType.DISABLED, EventType.ERROR])
|
||||
|
||||
async def import_private_key(self, key) -> Event:
|
||||
logger.debug("Requesting private key import")
|
||||
data = b"\x18" + key
|
||||
return await self.send(data, [EventType.OK, EventType.ERROR])
|
||||
|
||||
async def get_stats_core(self) -> Event:
|
||||
logger.debug("Getting core statistics")
|
||||
# CMD_GET_STATS (56) + STATS_TYPE_CORE (0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue