Browse Source

Allow WiFi more time to connect

fastled
Xose Pérez 7 years ago
parent
commit
dc768afada
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      code/espurna/config/general.h
  2. +1
    -0
      code/espurna/wifi.ino

+ 1
- 0
code/espurna/config/general.h View File

@ -152,6 +152,7 @@ PROGMEM const char* const custom_reset_string[] = {
// -----------------------------------------------------------------------------
#define WIFI_RECONNECT_INTERVAL 120000
#define WIFI_CONNECT_TIMEOUT 30000
#define WIFI_MAX_NETWORKS 5
#define ADMIN_PASS "fibonacci"
#define FORCE_CHANGE_PASS 1


+ 1
- 0
code/espurna/wifi.ino View File

@ -51,6 +51,7 @@ void wifiConfigure() {
jw.setHostname(getSetting("hostname", HOSTNAME).c_str());
jw.setSoftAP(getSetting("hostname", HOSTNAME).c_str(), getSetting("adminPass", ADMIN_PASS).c_str());
jw.setConnectTimeout(WIFI_CONNECT_TIMEOUT);
jw.setReconnectTimeout(WIFI_RECONNECT_INTERVAL);
jw.setAPMode(AP_MODE);
jw.cleanNetworks();


Loading…
Cancel
Save