diff --git a/examples/mqttRSSI/mqttRSSI.ino b/examples/mqttRSSI/mqttRSSI.ino index 8ccafa3..0b4517e 100644 --- a/examples/mqttRSSI/mqttRSSI.ino +++ b/examples/mqttRSSI/mqttRSSI.ino @@ -359,7 +359,7 @@ void setup() { AutoConnectCheckbox& uniqueidElm = setting->getElement("uniqueid"); AutoConnectInput& hostnameElm = setting->getElement("hostname"); if (uniqueidElm.checked) { - config.apid = String("ESP") + "_" + String(GET_CHIPID(), HEX); + config.apid = String("ESP") + "-" + String(GET_CHIPID(), HEX); Serial.println("apid set to " + config.apid); } if (hostnameElm.value.length()) { diff --git a/examples/mqttRSSI_FS/mqttRSSI_FS.ino b/examples/mqttRSSI_FS/mqttRSSI_FS.ino index 9e1c983..4168f69 100644 --- a/examples/mqttRSSI_FS/mqttRSSI_FS.ino +++ b/examples/mqttRSSI_FS/mqttRSSI_FS.ino @@ -247,7 +247,7 @@ void setup() { AutoConnectCheckbox& uniqueidElm = setting->getElement("uniqueid"); AutoConnectInput& hostnameElm = setting->getElement("hostname"); if (uniqueidElm.checked) { - config.apid = String("ESP") + "_" + String(GET_CHIPID(), HEX); + config.apid = String("ESP") + "-" + String(GET_CHIPID(), HEX); Serial.println("apid set to " + config.apid); } if (hostnameElm.value.length()) {