added config mode callback

This commit is contained in:
Alex Tudorache
2015-12-17 09:25:09 +02:00
parent f9b6db797f
commit 6ff9712b65
4 changed files with 66 additions and 7 deletions
+9 -1
View File
@@ -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) {