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:
@@ -1,15 +1,14 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import asyncio
|
||||
|
||||
from meshcore import MeshCore
|
||||
from meshcore import MeshCore, EventType
|
||||
|
||||
PORT = "/dev/tty.usbserial-583A0069501"
|
||||
BAUDRATE = 115200
|
||||
|
||||
async def main():
|
||||
mc = await MeshCore.create_serial(PORT, BAUDRATE)
|
||||
|
||||
|
||||
print(mc.self_info)
|
||||
|
||||
await mc.disconnect()
|
||||
|
||||
Reference in New Issue
Block a user