Example python code showing how to connect Connio from edge devices.
Download the code from github, and install dependencies using pip, a package manager for Python.
pip install paho-mqtt
pip install pytz
In order to use the code, you need to set the following environment variables with your accounts values:
BROKER_HOST
BROKER_PORT
CONNIO_DEVICE_ID
CONNIO_DEVICE_KEY_ID
CONNIO_DEVICE_KEY_SECRET
CONNIO_PROVISION_KEY_ID
CONNIO_PROVISION_KEY_SECRET
CONNIO_DEVICE_SN
The documentation for this sample can be found here.