mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 03:56:16 +00:00
updated ble_t1000 connection
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user