mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-13 14:51:21 +10:00
comments
This commit is contained in:
+2
-1
@@ -710,6 +710,7 @@ void WiFiManager::handleWifi(boolean scan) {
|
||||
handleRequest();
|
||||
String page = getHTTPHead(FPSTR(S_titlewifi)); // @token titlewifi
|
||||
if (scan) {
|
||||
// DEBUG_WM("arg:",server->hasArg(F("refresh"))); // arg has to have value, and has to be post, why!!
|
||||
if(server->hasArg(F("refresh"))) WiFi_scanNetworks(true); // preload wifiscan, force
|
||||
page += getScanItemOut();
|
||||
}
|
||||
@@ -786,7 +787,7 @@ bool WiFiManager::WiFi_scanNetworks(int cachetime){
|
||||
return WiFi_scanNetworks(millis()-_lastscan > cachetime);
|
||||
}
|
||||
bool WiFiManager::WiFi_scanNetworks(bool force){
|
||||
DEBUG_WM(_numNetworks,(millis()-_lastscan ));
|
||||
// DEBUG_WM(_numNetworks,(millis()-_lastscan ));
|
||||
if(force || _numNetworks == 0 || (millis()-_lastscan > 60000)){
|
||||
_numNetworks = WiFi.scanNetworks();
|
||||
_lastscan = millis();
|
||||
|
||||
+3
-3
@@ -182,13 +182,13 @@ class WiFiManager
|
||||
void setRestorePersistent(boolean persistent);
|
||||
//if true, always show static net inputs, IP, subnet, gateway, if false, only show when already set.
|
||||
void setShowStaticFields(boolean alwaysShow);
|
||||
//if true disable captive portal redirection
|
||||
//if false, disable captive portal redirection
|
||||
void setCaptivePortalEnable(boolean enabled);
|
||||
//if true, timeout captive portal even if a STA client connected (true), suggest disabling if captiveportal is open
|
||||
//if false, timeout captive portal even if a STA client connected (false), suggest disabling if captiveportal is open
|
||||
void setCaptivePortalClientCheck(boolean enabled);
|
||||
//if true, reset timeout when webclient connects (true), suggest disabling if captiveportal is open
|
||||
void setWebPortalClientCheck(boolean enabled);
|
||||
// if true enable autoreconnecting
|
||||
// if true, enable autoreconnecting
|
||||
void setWiFiAutoReconnect(boolean enabled);
|
||||
// if true, wifiscan will show percentage instead of quality icons, until we have better templating
|
||||
void setScanDispPerc(boolean enabled);
|
||||
|
||||
Reference in New Issue
Block a user