Added getParameters and getParametersCount methods.

Useful for iterating over WiFiManager parameter list
This commit is contained in:
Fernando Llaca
2018-09-16 21:34:24 +02:00
parent 4f0a87a0a5
commit b4cc27cb56
2 changed files with 20 additions and 0 deletions
+4
View File
@@ -198,6 +198,10 @@ class WiFiManager
void setSaveConfigCallback( std::function<void()> func );
//adds a custom parameter, returns false on failure
bool addParameter(WiFiManagerParameter *p);
//returns the list of Parameters
WiFiManagerParameter** getParameters();
// returns the Parameters Count
int getParametersCount();
//if this is set, it will exit after config, even if connection is unsuccessful.
void setBreakAfterConfig(boolean shouldBreak);
// if this is set, portal will be blocking and wait until save or exit,