Allow two minutes between WIFI connect retries

This commit is contained in:
Xose Pérez
2017-02-26 16:14:21 +01:00
parent a887cc8789
commit 4db64ea581
2 changed files with 2 additions and 1 deletions

View File

@@ -106,7 +106,7 @@
// WIFI & WEB
// -----------------------------------------------------------------------------
#define WIFI_RECONNECT_INTERVAL 300000
#define WIFI_RECONNECT_INTERVAL 120000
#define WIFI_MAX_NETWORKS 5
#define ADMIN_PASS "fibonacci"
#define FORCE_CHANGE_PASS 1

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.setReconnectTimeout(WIFI_RECONNECT_INTERVAL);
jw.setAPMode(AP_MODE);
jw.cleanNetworks();