updated ble_t1000 connection

This commit is contained in:
Florent 2025-08-19 11:52:14 +02:00
parent 565597e437
commit bc9a04b296

View file

@ -5,15 +5,17 @@ import json
from meshcore import MeshCore
from meshcore import BLEConnection
ADDRESS = "echo" # node ble adress or name
ADDRESS = "1000" # 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()
mc = await MeshCore.create_ble(ADDRESS)
# con = BLEConnection(ADDRESS)
# await con.connect()
# mc = MeshCore(con)
# await mc.connect()
await mc.commands.send_chan_msg(0, MSG)