mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-13 14:51:21 +10:00
Added getParameters and getParametersCount methods.
Useful for iterating over WiFiManager parameter list
This commit is contained in:
@@ -150,6 +150,22 @@ bool WiFiManager::addParameter(WiFiManagerParameter *p) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* [getParameters description]
|
||||
* @access public
|
||||
*/
|
||||
WiFiManagerParameter** WiFiManager::getParameters() {
|
||||
return _params;
|
||||
}
|
||||
|
||||
/**
|
||||
* [getParametersCount description]
|
||||
* @access public
|
||||
*/
|
||||
int WiFiManager::getParametersCount() {
|
||||
return _paramsCount;
|
||||
}
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------------------
|
||||
* WiFiManager
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user