Arduino MQTT Client

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.

Using Platform.io

The latest stable version is available in PlatformIO and can be installed in the following was:

  1. Using the CLI: pio lib install "losant-mqtt-arduino"
  2. Adding the library as a dependency (lib_deps) to your project configuration file platformio.ini
[env:myenv]
platform = ...
board = ...
framework = arduino
lib_deps = losant-mqtt-arduino

Arduino MQTT Examples

The following are basic examples to connect various Arduino boards:

Please refer to the full repository for detailed documentation.