mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
example for using send_msg_with_retry
This commit is contained in:
parent
00e56c0d15
commit
baecf71fe4
1 changed files with 15 additions and 0 deletions
15
examples/ble_t1000_msg_retries.py
Executable file
15
examples/ble_t1000_msg_retries.py
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import asyncio
|
||||
from meshcore import MeshCore
|
||||
from meshcore import BLEConnection
|
||||
|
||||
ADDRESS = "T1000" # node ble adress or name
|
||||
DEST = "993acd42fc779962c68c627829b32b111fa27a67d86b75c17460ff48c3102db4"
|
||||
MSG = "Hello World"
|
||||
|
||||
async def main () :
|
||||
mc = await MeshCore.create_ble(ADDRESS, debug=True)
|
||||
await mc.commands.send_msg_with_retry(DEST,MSG)
|
||||
|
||||
asyncio.run(main())
|
||||
Loading…
Add table
Add a link
Reference in a new issue