diff --git a/examples/ble_t1000_chan_msg.py b/examples/ble_t1000_chan_msg.py new file mode 100755 index 0000000..996f718 --- /dev/null +++ b/examples/ble_t1000_chan_msg.py @@ -0,0 +1,20 @@ +#!/usr/bin/python + +import asyncio +import json +from meshcore import MeshCore +from meshcore import BLEConnection + +ADDRESS = "t1000" # 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() + + await mc.send_chan_msg(0, MSG) + +asyncio.run(main()) diff --git a/pyproject.toml b/pyproject.toml index 8b9cf2e..64bd83a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meshcore" -version = "0.4" +version = "0.4.2" authors = [ { name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, ]