mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 11:56:18 +00:00
Added contact based dest
This commit is contained in:
@@ -16,7 +16,10 @@ async def main () :
|
||||
await mc.commands.get_contacts()
|
||||
repeater = mc.get_contact_by_name(REPEATER)
|
||||
|
||||
await mc.commands.send_login(bytes.fromhex(repeater["public_key"]), PASSWORD)
|
||||
if repeater is None:
|
||||
print(f"Repeater '{REPEATER}' not found in contacts.")
|
||||
return
|
||||
await mc.commands.send_login(repeater, PASSWORD)
|
||||
|
||||
print("Login sent ... awaiting")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user