Added method getConfigurationSSID(), so the config portal SSID that is created by the ESP8266 can be used in the callback (e.g. for output to a screen)

This commit is contained in:
Franklin van Velthuizen
2016-01-09 01:17:16 +01:00
parent b05dff34b7
commit 1db01f08e6
2 changed files with 13 additions and 6 deletions
+4 -1
View File
@@ -67,6 +67,9 @@ class WiFiManager
String getSSID();
String getPassword();
// get the AP name of the config portal, so it can be used in the callback
String getConfigurationSSID();
void resetSettings();
//for convenience
String urldecode(const char*);
@@ -96,7 +99,7 @@ class WiFiManager
const String HTTP_HEAD = "<!DOCTYPE html><html lang=\"en\"><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/><title>{v}</title>";
void setupConfigPortal(char const *apName, char const *apPassword);
void setupConfigPortal();
int _eepromStart;
const char* _apName = "no-net";