Merge pull request #207 from Hieromon/patches/206

Patches/206
master
Hieromon Ikasamo 5 years ago committed by GitHub
commit 3c9ad78ffa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      examples/mqttRSSI/mqttRSSI.ino
  2. 2
      examples/mqttRSSI_FS/mqttRSSI_FS.ino
  3. 2
      examples/mqttRSSI_NA/mqttRSSI_NA.ino
  4. 2
      src/AutoConnectPage.cpp

@ -366,7 +366,6 @@ void setup() {
config.hostName = hostName; config.hostName = hostName;
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);
@ -378,6 +377,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());
} }

@ -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 {

@ -221,7 +221,6 @@ void setup() {
Serial.println("apid set to " + config.apid); Serial.println("apid set to " + config.apid);
} }
config.bootUri = AC_ONBOOTURI_HOME;
config.homeUri = "/"; config.homeUri = "/";
portal.config(config); portal.config(config);
@ -231,6 +230,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());
} }

@ -706,7 +706,7 @@ const char AutoConnect::_PAGE_CONFIGNEW[] PROGMEM = {
"document.getElementById('ssid').value=e,document.getElementById('passphrase').focus()" "document.getElementById('ssid').value=e,document.getElementById('passphrase').focus()"
"}" "}"
"function vsw(e){" "function vsw(e){"
"var t;t=e?'none':'table-row';for(const e of document.getElementsByClassName('exp'))e.style.display=t;e||document.getElementById('sip').focus()" "var t;t=e?'none':'table-row';for(const n of document.getElementsByClassName('exp'))n.style.display=t,n.getElementsByTagName('input')[0].disabled=e;e||document.getElementById('sip').focus()"
"}" "}"
"</script>" "</script>"
"</body>" "</body>"

Loading…
Cancel
Save