|
|
@ -243,7 +243,6 @@ void setup() { |
|
|
|
config.hostName = hostnameElm.value; |
|
|
|
config.hostName = hostnameElm.value; |
|
|
|
Serial.println("hostname set to " + config.hostName); |
|
|
|
Serial.println("hostname set to " + config.hostName); |
|
|
|
} |
|
|
|
} |
|
|
|
config.bootUri = AC_ONBOOTURI_HOME; |
|
|
|
|
|
|
|
config.homeUri = "/"; |
|
|
|
config.homeUri = "/"; |
|
|
|
portal.config(config); |
|
|
|
portal.config(config); |
|
|
|
|
|
|
|
|
|
|
@ -255,6 +254,7 @@ void setup() { |
|
|
|
|
|
|
|
|
|
|
|
Serial.print("WiFi "); |
|
|
|
Serial.print("WiFi "); |
|
|
|
if (portal.begin()) { |
|
|
|
if (portal.begin()) { |
|
|
|
|
|
|
|
config.bootUri = AC_ONBOOTURI_HOME; |
|
|
|
Serial.println("connected:" + WiFi.SSID()); |
|
|
|
Serial.println("connected:" + WiFi.SSID()); |
|
|
|
Serial.println("IP:" + WiFi.localIP().toString()); |
|
|
|
Serial.println("IP:" + WiFi.localIP().toString()); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|