This example focuses on the optional MQTT module (cm::MQTTManager) and its integration into the ConfigurationsManager Web UI.
- Core settings templates: WiFi + System + NTP via
cm::CoreSettings - Settings-driven startup via
ConfigManager.startWebServer()(DHCP/static/AP fallback) - MQTT module usage via explicit include:
#include "mqtt/MQTTManager.h" - MQTT connection state + last message visible in the Runtime view
This example adds:
knolleary/PubSubClient@^2.8
From the repo root:
pio run -d examples/Full-MQTT-Demo -e usb
pio run -d examples/Full-MQTT-Demo -e usb -t uploadIf no SSID is configured yet, the device starts in AP mode.
Open the printed AP URL from Serial (usually http://192.168.4.1) and configure WiFi via the Web UI.
After WiFi is configured:
- Set
MQTT: Enable= true - Configure
MQTT: Server+MQTT: Port - Optional:
MQTT: Username+MQTT: Password - Optional:
MQTT: Subscribe Topic(example:cm/demo/#)
Then watch the MQTT runtime card for status updates.



