mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-14 15:11:32 +10:00
added config mode callback
This commit is contained in:
+9
-1
@@ -88,7 +88,10 @@ boolean WiFiManager::autoConnect(char const *apName) {
|
||||
//not connected
|
||||
//setup AP
|
||||
WiFi.mode(WIFI_AP);
|
||||
|
||||
//notify we entered AP mode
|
||||
if( _apcallback != NULL) {
|
||||
_apcallback();
|
||||
}
|
||||
connect = false;
|
||||
begin(apName);
|
||||
|
||||
@@ -423,6 +426,11 @@ boolean WiFiManager::captivePortal() {
|
||||
return false;
|
||||
}
|
||||
|
||||
//start up config portal callback
|
||||
void WiFiManager::setAPCallback( void (*func)(void) ) {
|
||||
_apcallback = func;
|
||||
}
|
||||
|
||||
|
||||
template <typename Generic>
|
||||
void WiFiManager::DEBUG_PRINT(Generic text) {
|
||||
|
||||
Reference in New Issue
Block a user