The Losant Arduino MQTT Client is a C++ library designed to work on a variety of Arduino compatible boards. The library is open source and available on GitHub.
The latest stable version is available in PlatformIO and can be installed in the following was:
- Using the CLI:
pio lib install "losant-mqtt-arduino"
- Adding the library as a dependency (lib_deps) to your project configuration file
[env:myenv] platform = ... board = ... framework = arduino lib_deps = losant-mqtt-arduino
The following are basic examples to connect various Arduino boards:
Please refer to the full repository for detailed documentation.