An open source, header only and fully templated MQTT Library for C++11. The main focus is to be fully generic and resource efficient. This library only provides the means to communicate with a MQTT broker and not the logic for example for QoS management (although QoS::at_most_once requires no management). This also works with the Arduino framework (was tested on a ESP8266).
Supported protocols:
- MQTT v3.1.1
The documentation can be found here.
Since there is nothing to compile except the examples you can run the following
mkdir build && cd build
cmake ..
cmake --build .
cmake --build . --target install
After installing or adding it by add_subdirectory
you can link the target terraqtt::terraqtt
like so:
find_package(terraqtt REQUIRED)
target_link_libraries(my_target terraqtt::terraqtt)
- Will message
- Advanced client