diff --git a/examples/ble_t1000_chan_msg.py b/examples/ble_t1000_chan_msg.py index c22df3c..dd0307e 100755 --- a/examples/ble_t1000_chan_msg.py +++ b/examples/ble_t1000_chan_msg.py @@ -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)