diff --git a/examples/mqttRSSI/mqttRSSI.ino b/examples/mqttRSSI/mqttRSSI.ino
index 54ae6bf..8ccafa3 100644
--- a/examples/mqttRSSI/mqttRSSI.ino
+++ b/examples/mqttRSSI/mqttRSSI.ino
@@ -49,7 +49,7 @@ static const char AUX_mqtt_setting[] PROGMEM = R"raw(
"name": "header",
"type": "ACText",
"value": "
MQTT broker settings
",
- "style": "text-align:center;color:#2f4f4f;padding:10px;"
+ "style": "text-align:center;color:#2f4f4f;"
},
{
"name": "caption",
@@ -89,7 +89,7 @@ static const char AUX_mqtt_setting[] PROGMEM = R"raw(
"type": "ACCheckbox",
"value": "unique",
"label": "Use APID unique",
- "checked": true
+ "checked": false
},
{
"name": "period",
@@ -354,6 +354,8 @@ void setup() {
if (portal.load(FPSTR(AUX_mqtt_setting))) {
AutoConnectAux* setting = portal.aux(AUX_SETTING_URI);
+ PageArgument args;
+ loadParams(*setting, args);
AutoConnectCheckbox& uniqueidElm = setting->getElement("uniqueid");
AutoConnectInput& hostnameElm = setting->getElement("hostname");
if (uniqueidElm.checked) {
diff --git a/examples/mqttRSSI_FS/data/mqtt_setting.json b/examples/mqttRSSI_FS/data/mqtt_setting.json
index acba2fa..6e5efca 100644
--- a/examples/mqttRSSI_FS/data/mqtt_setting.json
+++ b/examples/mqttRSSI_FS/data/mqtt_setting.json
@@ -7,7 +7,7 @@
"name": "header",
"type": "ACText",
"value": "MQTT broker settings
",
- "style": "text-align:center;color:#2f4f4f;padding:10px;"
+ "style": "text-align:center;color:#2f4f4f;"
},
{
"name": "caption",
diff --git a/examples/mqttRSSI_FS/mqttRSSI_FS.ino b/examples/mqttRSSI_FS/mqttRSSI_FS.ino
index 64ef690..9e1c983 100644
--- a/examples/mqttRSSI_FS/mqttRSSI_FS.ino
+++ b/examples/mqttRSSI_FS/mqttRSSI_FS.ino
@@ -242,6 +242,8 @@ void setup() {
AutoConnectAux* setting = portal.aux(AUX_MQTTSETTING);
if (setting) {
+ PageArgument args;
+ loadParams(*setting, args);
AutoConnectCheckbox& uniqueidElm = setting->getElement("uniqueid");
AutoConnectInput& hostnameElm = setting->getElement("hostname");
if (uniqueidElm.checked) {