mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
18 lines
290 B
Python
Executable file
18 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())
|