From 2ac069c42c1260c32af0c9b4f67ec979df68ab32 Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Mon, 31 Dec 2018 04:55:01 +0900 Subject: [PATCH] Minor bug fix --- examples/mqttRSSI/mqttRSSI.ino | 6 ++++-- examples/mqttRSSI_FS/data/mqtt_setting.json | 2 +- examples/mqttRSSI_FS/mqttRSSI_FS.ino | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) 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) {