Arduino libraries
There are various MQTT libraries around for Arduino, three of the most popular being arduino-mqtt (https://github.com/256dpi/arduino-mqtt), pubsubclient (https://github.com/knolleary/pubsubclient), and the Adafruit MQTT library (https://github.com/adafruit/Adafruit_MQTT_Library). Some of them are only compatible with certain development boards; also, their implementations of the MQTT specifications differ.
In my projects, I have had the most success with arduino-mqtt by Joël Gähwiler, the same person who runs shiftr.io, the MQTT server with built-in graph visualization, which I could not stop praising a few sections prior to this. Because both the MQTT library and the server are developed by the same author, the chances ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access