mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
17 lines
249 B
Python
Executable file
17 lines
249 B
Python
Executable file
#!/usr/bin/python
|
|
|
|
import asyncio
|
|
|
|
from meshcore import MeshCore
|
|
|
|
HOSTNAME = "mchome"
|
|
PORT = 5000
|
|
|
|
async def main():
|
|
mc = await MeshCore.create_tcp(HOSTNAME, PORT)
|
|
|
|
print(mc.self_info)
|
|
|
|
await mc.disconnect()
|
|
|
|
asyncio.run(main())
|