mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 11:56:18 +00:00
19 lines
290 B
Python
Executable File
19 lines
290 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
import asyncio
|
|
|
|
from meshcore import MeshCore
|
|
from meshcore import BLEConnection
|
|
|
|
ADDRESS = "t1000"
|
|
|
|
async def main () :
|
|
con = BLEConnection(ADDRESS)
|
|
await con.connect()
|
|
mc = MeshCore(con)
|
|
await mc.connect()
|
|
|
|
print(mc.self_info)
|
|
|
|
asyncio.run(main())
|