mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
Fix example
This commit is contained in:
parent
b700ae75e9
commit
cbfc940de6
2 changed files with 6 additions and 3 deletions
|
|
@ -13,6 +13,9 @@ async def main () :
|
|||
|
||||
await mc.ensure_contacts()
|
||||
contact = mc.get_contact_by_name(DEST)
|
||||
if not contact:
|
||||
print(f"Contact {DEST} not found")
|
||||
return
|
||||
await mc.commands.send_msg(bytes.fromhex(contact["public_key"])[0:6], MSG)
|
||||
print ("Message sent ... awaiting")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue