meshcore_py/examples/ble_t1000_infos.py

19 lines
290 B
Python
Raw Normal View History

2025-03-29 12:32:10 +01:00
#!/usr/bin/python
import asyncio
2025-03-30 08:36:39 +02:00
from meshcore import MeshCore
from meshcore import BLEConnection
ADDRESS = "t1000"
2025-03-29 12:32:10 +01:00
async def main () :
2025-03-30 08:36:39 +02:00
con = BLEConnection(ADDRESS)
2025-03-29 12:32:10 +01:00
await con.connect()
mc = MeshCore(con)
await mc.connect()
print(mc.self_info)
asyncio.run(main())