Python
Quick guide for Pyhton library.
Getting Started
Visit the MQTT overview page for conventions, authentication, and more information.
This documentation uses the Paho MQTT
library. This library is open-source, so that you can check it out on GitHub.
Install the packages
Then import it and initialize it with the required packages. Of course, youβll want to replace DEVICE_ID
and DEVICE_TOKEN
with your actual device credentials which you can find under your device settings on Qubitro Portal.
Examples
We strongly recommend using the 8883 port for MQTT over TLS connectivity.
QoS Options
Publish
An example of publishing data.
Subscribe
An example of subscribing to a topic and receiving the message.
Log
Disconnect
β¨ Support and Feedback
If you have further questions or suggestions, feel free to join π -> Qubitro Community Discord via this invitation link.
Last updated