A MQTT Client based off of Eclipse Paho. The MQTT protocol provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for Internet of Things messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers.
This library uses:
paho-mqtt-c
paho-mqtt-cpp
The easiest way to get these is via vcpkg:
The included vcpkg.json
should automatically download and build the dependencies for all examples in here. This block also requires cinder to be in an adjacent folder for the cinder dependencies to be found automatically:
parentFolder/
sitara-mqtt/
cinder/
Use the included vcpkg.json
as a jumping off point for adding this block into other projects!
MqttClientExample
shows a basic MQTT Client communicating with the Mosquitto test server at http://test.mosquitto.org/.
TLS Certificates are from the Mozilla CA Certificate Store. The file was downloaded from curl (to get it in a compatible .pem format) on 22 July 2020.
Inside of your cinder app, you can add the path to the file using ci::app::addAssetDirectory()
.