Releases: GerLech/WebConfig
Bug Fix
Bugfix
New input types INPUTTEXTAREA and INPUTMULTICHECK
New input types on user demand.
-
INPUTTEXTAREA 11 Text area with multiple lines
-
INPUTMULTICHECK 12 Fieldset with multiple checkboxes. The result string has one character
0 or 1 for every option. 010010 means there are 6 options and option 2 nand 5 are true
Somer Compiler warnings were fixed too.
Bug Fix
Fixed wrong spelled include file
Bug Fix
New form mode
It is now possible to show a simple form without automatic save. These forms can have one or more buttons (DONE, CANCEL, DELETE).
Callback functions on button click allows to return to another web page after configuration was done.
Added new Functions
The following functions have been added
//Get results as a JSON string
String getResults();
//set the value for a parameter
void setValue(const charname,String value);
//set the label for a parameter
void setLabel(const char * name, const char label);
//remove all options
void clearOptions(uint8_t index);
void clearOptions(const char * name);
//add a new option
void addOption(uint8_t index, String option);
void addOption(uint8_t index, String option, String label);
//modify an option
void setOption(uint8_t index, uint8_t option_index, String option, String label);
void setOption(char * name, uint8_t option_index, String option, String label);
//get the options count
uint8_t getOptionCount(uint8_t index);
uint8_t getOptionCount(char * name);
Minor fixes
In the header file was a weong include file for web server Webserver.h in place of WebServer.h. This affected only usage with ESP32.
There was also an errornous link in properties file
First Release
Initial post