Refactored to use only a default constructor and automatically resize the parameter array each time the size limit is reached.

I used the initial size (WIFI_MANAGER_MAX_PARAMS) as the increment when resizing.
Existing data is coppied to the new array and the old one is free'd.
This commit is contained in:
Chris Liebman
2017-10-26 15:23:47 -07:00
parent 33704176e0
commit 6465d72f6e
2 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ class WiFiManagerParameter {
class WiFiManager
{
public:
WiFiManager(int max_params=10);
WiFiManager();
~WiFiManager();
boolean autoConnect();