ConfigAssist-ESP32-ESP8266
ConfigAssist-ESP32-ESP8266 copied to clipboard
Parameter change on the fly
Hi,
I want to update some config parameters on the fly (without user input from the HTML form) by some if_else logic while ESP is running.
I could not find a related function for this. Is this possible?
Many thanks for your help. This library really speed up my development.
Best regards Deniz
Hello Yes you can use put function // Update the value of key = value (string) bool ConfigAssist::put(const String key, String val, bool force)
Set force to true to add the key even if not exists For example.. config.put("var2", 1234, true);
See example https://github.com/gemi254/ConfigAssist-ESP32-ESP8266/blob/main/examples/ConfigAssist-Simple/ConfigAssist-Simple.ino
Thanks