From 0a44cb9fbef09be58ab26565a14e36c033eadc5a Mon Sep 17 00:00:00 2001 From: Hieromon Ikasamo Date: Thu, 31 Jan 2019 19:46:57 +0900 Subject: [PATCH] Fixed the loss of the uniqueid --- examples/mqttRSSI/mqttRSSI.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/mqttRSSI/mqttRSSI.ino b/examples/mqttRSSI/mqttRSSI.ino index ee13b72..dbd9ee4 100644 --- a/examples/mqttRSSI/mqttRSSI.ino +++ b/examples/mqttRSSI/mqttRSSI.ino @@ -283,7 +283,7 @@ String saveParams(AutoConnectAux& aux, PageArgument& args) { AutoConnectRadio& period = mqtt_setting->getElement("period"); updateInterval = period.value().substring(0, 2).toInt() * 1000; - String uniqueid = mqtt_setting->getElement("uniqueid").value; + bool uniqueid = mqtt_setting->getElement("uniqueid").checked; AutoConnectInput& hostname = mqtt_setting->getElement("hostname"); hostName = hostname.value; @@ -305,7 +305,7 @@ String saveParams(AutoConnectAux& aux, PageArgument& args) { echo.value += "User Key: " + userKey + "
"; echo.value += "API Key: " + apiKey + "
"; echo.value += "Update period: " + String(updateInterval / 1000) + " sec.
"; - echo.value += "Use APID unique: " + uniqueid + "
"; + echo.value += "Use APID unique: " + String(uniqueid == true ? "true" : "false") + "
"; echo.value += "ESP host name: " + hostName + "
"; return String();