This commit is contained in:
tablatronix
2021-01-28 12:15:57 -06:00
parent 9eac697606
commit 6119a9efdf
2 changed files with 23 additions and 4 deletions
+16
View File
@@ -2757,6 +2757,22 @@ void WiFiManager::setShowInfoUpdate(boolean enabled){
_showInfoUpdate = enabled;
}
/**
* check if the config portal is running
* @return bool true if active
*/
bool WiFiManager::getConfigPortalActive(){
return configPortalActive;
}
/**
* [getConfigPortalActive description]
* @return bool true if active
*/
bool WiFiManager::getWebPortalActive(){
return webPortalActive;
}
/**
* set menu items and order
* if param is present in menu , params will be removed from wifi page automatically
+7 -4
View File
@@ -361,6 +361,12 @@ class WiFiManager
// set port of webserver, 80
void setHttpPort(uint16_t port);
// check if config portal is active (true)
bool getConfigPortalActive();
// check if web portal is active (true)
bool getWebPortalActive();
std::unique_ptr<DNSServer> dnsServer;
#if defined(ESP32) && defined(WM_WEBSERVERSHIM)
@@ -640,10 +646,7 @@ class WiFiManager
// DEBUG_WM("NO fromString METHOD ON IPAddress, you need ESP8266 core 2.1.0 or newer for Custom IP configuration to work.");
return false;
}
public:
inline bool isConfigPortalActive() { return configPortalActive; }
inline bool isWebPortalActive() { return webPortalActive; }
};
#endif