meshcore_py/examples/serial_infos.py
2025-04-12 00:26:25 -07:00

17 lines
278 B
Python
Executable file

#!/usr/bin/python
import asyncio
from meshcore import MeshCore
PORT = "/dev/tty.usbserial-583A0069501"
BAUDRATE = 115200
async def main():
mc = await MeshCore.create_serial(PORT, BAUDRATE)
print(mc.self_info)
await mc.disconnect()
asyncio.run(main())