Changed apid to valid

pull/41/head
Hieromon Ikasamo 6 years ago
parent d2ac92f394
commit 3555d84935
  1. 2
      examples/mqttRSSI/mqttRSSI.ino
  2. 2
      examples/mqttRSSI_FS/mqttRSSI_FS.ino

@ -359,7 +359,7 @@ void setup() {
AutoConnectCheckbox& uniqueidElm = setting->getElement<AutoConnectCheckbox>("uniqueid");
AutoConnectInput& hostnameElm = setting->getElement<AutoConnectInput>("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()) {

@ -247,7 +247,7 @@ void setup() {
AutoConnectCheckbox& uniqueidElm = setting->getElement<AutoConnectCheckbox>("uniqueid");
AutoConnectInput& hostnameElm = setting->getElement<AutoConnectInput>("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()) {

Loading…
Cancel
Save