This sketch reads three analog values and sends them twice a second to a mqtt broker. Two implementations are
provided running on Arduino MKR WiFi 1010, one uses the official ArduinoMqttClient
library
and the other one uses Joel's 256dpi MQTT library.
This is using the ArduinoMqttClient
library. It works great with shiftr desktop, but when using it
against a shiftr instance it chokes.
#include <ArduinoMqttClient.h>
#include <WiFiNINA.h>