use malloc/free for WiFiManagerParameter* array instead of hard coding.

add alternate constructor to specifiy max parameter count
origional default constructor uses old hard codded value
This commit is contained in:
Chris Liebman
2017-06-04 06:41:27 -07:00
parent 3135bc5e89
commit 362a561a35
3 changed files with 35 additions and 3 deletions
+5
View File
@@ -204,6 +204,11 @@ You should also take a look at adding custom HTML to your form.
- Save and load custom parameters to file system in json form [AutoConnectWithFSParameters](https://github.com/tzapu/WiFiManager/tree/master/examples/AutoConnectWithFSParameters)
- *Save and load custom parameters to EEPROM* (not done yet)
NOTE: if your need more than 10 (the default) custom parameters you will need to use the alternate constructor:
```cpp
WiFiManager wifiManager(15); // pass the number of params you will be adding
```
#### Custom IP Configuration
You can set a custom IP for both AP (access point, config mode) and STA (station mode, client mode, normal project state)