C
Quick guide for C 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 you can check it out on GitHub.
Install the packages
Include libraries
Define variables
Set MQTT client options
Set client options and connect to the broker.
Publish data:
Optional: Close the connection to the broker:
Example
We strongly recommend using the 8883 port for MQTT over TLS connectivity.
β¨ Support and Feedback
If you have further questions or suggestions, feel free to join π -> Qubitro Community Discord via this invitation link.
Last updated