mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
updated ble_t1000 connection
This commit is contained in:
parent
565597e437
commit
bc9a04b296
1 changed files with 7 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue