Sample implementation of Zserio Pub/Sub mosquitto backend in C++.
-
Install Mosquitto according to official instructions. Mosquitto is the message broker which implements MQTT protocol.
-
Install C library libmosquitto for development. E.g. on Ubuntu install
libmosquitto-dev
.
Note that Zserio prerequisites are automatically downloaded by CMake.
Go to the zserio-pubsub-mosquitto-cpp root directory.
Build ZserioPubsubMosquitto library:
mkdir build
pushd build
cmake ../src
cmake --build .
popd
See Calculator Example.