You can download our sample python code that you can embed into your devices to communicate with the Connio platform securely.
The following example shows how you can connect a device to the platform using provisioning mechanism or directly using device credentials.
In order to use the provisioning mechanism, you need to do the following:
Create an API Client with App context, and
device:read scope to access to the provisioning app
Final step is to link your device to the app that will be used for provisioning purpose.
In order to use the code, you need to set the following environment variables with your accounts values:
Always use port 8883 in production.
CONNIO_DEVICE_ID CONNIO_DEVICE_KEY_ID CONNIO_DEVICE_KEY_SECRET
You can easily access this information on Connio Portal.
CONNIO_PROVISION_KEY_ID CONNIO_PROVISION_KEY_SECRET CONNIO_DEVICE_SN
You can check provisioning key details at API Key Credentials page.
Updated almost 4 years ago