Merge branch 'main' into eventing-refactor

This commit is contained in:
Alex Wolden
2025-04-12 13:50:17 -07:00
committed by GitHub
2 changed files with 21 additions and 1 deletions

20
examples/ble_t1000_chan_msg.py Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/python
import asyncio
import json
from meshcore import MeshCore
from meshcore import BLEConnection
ADDRESS = "t1000" # node ble adress or name
DEST = "mchome"
MSG = "Hello World"
async def main () :
con = BLEConnection(ADDRESS)
await con.connect()
mc = MeshCore(con)
await mc.connect()
await mc.send_chan_msg(0, MSG)
asyncio.run(main())