Merge pull request #210 from TaaraLabs/patch-1

startConfigPortal() without any parameters

thank you very much
This commit is contained in:
tzapu
2016-10-15 08:04:13 +03:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -149,6 +149,11 @@ boolean WiFiManager::autoConnect(char const *apName, char const *apPassword) {
return startConfigPortal(apName, apPassword);
}
boolean WiFiManager::startConfigPortal() {
String ssid = "ESP" + String(ESP.getChipId());
return startConfigPortal(ssid.c_str(), NULL);
}
boolean WiFiManager::startConfigPortal(char const *apName, char const *apPassword) {
//setup AP
WiFi.mode(WIFI_AP_STA);
+1
View File
@@ -70,6 +70,7 @@ class WiFiManager
boolean autoConnect(char const *apName, char const *apPassword = NULL);
//if you want to always start the config portal, without trying to connect first
boolean startConfigPortal();
boolean startConfigPortal(char const *apName, char const *apPassword = NULL);
// get the AP name of the config portal, so it can be used in the callback