mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-13 04:36:53 +00:00
support manual add contact
This commit is contained in:
@@ -313,6 +313,9 @@ class CommandHandler:
|
||||
+ int(contact["adv_lon"]*1e6).to_bytes(4, 'little', signed=True)
|
||||
return await self.send(data, [EventType.OK, EventType.ERROR])
|
||||
|
||||
async def add_contact (self, contact) -> Event:
|
||||
return await self.update_contact(contact)
|
||||
|
||||
async def change_contact_path (self, contact, path) -> Event:
|
||||
return await self.update_contact(contact, path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user