mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 11:56:18 +00:00
deal with serial_cx issues
This commit is contained in:
@@ -44,6 +44,8 @@ async def main():
|
||||
|
||||
print("Connected to MeshCore device")
|
||||
|
||||
res = await meshcore.commands.send_device_query()
|
||||
|
||||
# Get contacts
|
||||
result = await meshcore.commands.get_contacts()
|
||||
if result.type == EventType.ERROR:
|
||||
@@ -118,4 +120,4 @@ if __name__ == "__main__":
|
||||
# This prevents the KeyboardInterrupt traceback from being shown
|
||||
print("\nExited cleanly")
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
print(f"Error: {e}")
|
||||
|
||||
Reference in New Issue
Block a user