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();