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 MeshCore
|
||||||
from meshcore import BLEConnection
|
from meshcore import BLEConnection
|
||||||
|
|
||||||
ADDRESS = "echo" # node ble adress or name
|
ADDRESS = "1000" # node ble adress or name
|
||||||
DEST = "mchome"
|
DEST = "mchome"
|
||||||
MSG = "Hello World"
|
MSG = "Hello World"
|
||||||
|
|
||||||
async def main () :
|
async def main () :
|
||||||
con = BLEConnection(ADDRESS)
|
mc = await MeshCore.create_ble(ADDRESS)
|
||||||
await con.connect()
|
|
||||||
mc = MeshCore(con)
|
# con = BLEConnection(ADDRESS)
|
||||||
await mc.connect()
|
# await con.connect()
|
||||||
|
# mc = MeshCore(con)
|
||||||
|
# await mc.connect()
|
||||||
|
|
||||||
await mc.commands.send_chan_msg(0, MSG)
|
await mc.commands.send_chan_msg(0, MSG)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user