The Zephyr mesh demo python tool provides functions to easily grab data from zephyr mesh demo nodes and connect to the Cayenne IoT project builder. With it you can send zephyr mesh demo data to Cayenne.
- Python 2.7.9+ or 3.4+.
- This library.
- Eclipse Paho MQTT Python client library. This is installed as part of the Cayenne library installation.
- Raspberry Pi. or PC
- Running zephyr project mesh demo.
This library can be installed using pip:
On ubuntu: pip3 install cayenne-mqtt && pip3 install pyserial On ubuntu: git clone https://github.com/overheat/zephyr_mesh_tool.git cd zephyr_mesh_tool python3 setup.py install
- Create your Cayenne account at https://mydevices.com.
- Add a new device using the Bring Your Own Thing API selection.
Setup Zephyr Bluetooth Mesh Demo from here.
Connect any mesh node's serial port to your PC or Raspberry Pi, then
- On ubuntu:
- python3 app/mesh.py
For more detailed info about the Cayenne client API you can use pydoc.
pydoc cayenne.client
Additional libraries are available for connecting to Cayenne with other languages. These can be found at https://github.com/myDevicesIoT.