|
|
@ -359,7 +359,7 @@ void setup() { |
|
|
|
AutoConnectCheckbox& uniqueidElm = setting->getElement<AutoConnectCheckbox>("uniqueid"); |
|
|
|
AutoConnectCheckbox& uniqueidElm = setting->getElement<AutoConnectCheckbox>("uniqueid"); |
|
|
|
AutoConnectInput& hostnameElm = setting->getElement<AutoConnectInput>("hostname"); |
|
|
|
AutoConnectInput& hostnameElm = setting->getElement<AutoConnectInput>("hostname"); |
|
|
|
if (uniqueidElm.checked) { |
|
|
|
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); |
|
|
|
Serial.println("apid set to " + config.apid); |
|
|
|
} |
|
|
|
} |
|
|
|
if (hostnameElm.value.length()) { |
|
|
|
if (hostnameElm.value.length()) { |
|
|
|