Browse Source

Allow two minutes between WIFI connect retries

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

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

@ -106,7 +106,7 @@
// WIFI & WEB // WIFI & WEB
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
#define WIFI_RECONNECT_INTERVAL 300000
#define WIFI_RECONNECT_INTERVAL 120000
#define WIFI_MAX_NETWORKS 5 #define WIFI_MAX_NETWORKS 5
#define ADMIN_PASS "fibonacci" #define ADMIN_PASS "fibonacci"
#define FORCE_CHANGE_PASS 1 #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.setHostname(getSetting("hostname", HOSTNAME).c_str());
jw.setSoftAP(getSetting("hostname", HOSTNAME).c_str(), getSetting("adminPass", ADMIN_PASS).c_str()); jw.setSoftAP(getSetting("hostname", HOSTNAME).c_str(), getSetting("adminPass", ADMIN_PASS).c_str());
jw.setReconnectTimeout(WIFI_RECONNECT_INTERVAL);
jw.setAPMode(AP_MODE); jw.setAPMode(AP_MODE);
jw.cleanNetworks(); jw.cleanNetworks();


Loading…
Cancel
Save