Commit 6119a9e tablatronix
committed
1 parent 9eac697 commit 6119a9e Copy full SHA for 6119a9e
File tree 2 files changed +23
-4
lines changed
2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -2757,6 +2757,22 @@ void WiFiManager::setShowInfoUpdate(boolean enabled){
2757
2757
_showInfoUpdate = enabled;
2758
2758
}
2759
2759
2760
+ /* *
2761
+ * check if the config portal is running
2762
+ * @return bool true if active
2763
+ */
2764
+ bool WiFiManager::getConfigPortalActive (){
2765
+ return configPortalActive;
2766
+ }
2767
+
2768
+ /* *
2769
+ * [getConfigPortalActive description]
2770
+ * @return bool true if active
2771
+ */
2772
+ bool WiFiManager::getWebPortalActive (){
2773
+ return webPortalActive;
2774
+ }
2775
+
2760
2776
/* *
2761
2777
* set menu items and order
2762
2778
* if param is present in menu , params will be removed from wifi page automatically
Original file line number Diff line number Diff line change @@ -361,6 +361,12 @@ class WiFiManager
361
361
// set port of webserver, 80
362
362
void setHttpPort (uint16_t port);
363
363
364
+ // check if config portal is active (true)
365
+ bool getConfigPortalActive ();
366
+
367
+ // check if web portal is active (true)
368
+ bool getWebPortalActive ();
369
+
364
370
std::unique_ptr<DNSServer> dnsServer;
365
371
366
372
#if defined(ESP32) && defined(WM_WEBSERVERSHIM)
@@ -640,10 +646,7 @@ class WiFiManager
640
646
// DEBUG_WM("NO fromString METHOD ON IPAddress, you need ESP8266 core 2.1.0 or newer for Custom IP configuration to work.");
641
647
return false ;
642
648
}
643
-
644
- public:
645
- inline bool isConfigPortalActive () { return configPortalActive; }
646
- inline bool isWebPortalActive () { return webPortalActive; }
649
+
647
650
};
648
651
649
652
#endif
You can’t perform that action at this time.
0 commit comments