ConfigAssist-ESP32-ESP8266 icon indicating copy to clipboard operation
ConfigAssist-ESP32-ESP8266 copied to clipboard

Parameter change on the fly

Open ditopcu opened this issue 1 year ago • 1 comments

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

ditopcu avatar May 05 '24 19:05 ditopcu

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

gemi254 avatar May 07 '24 06:05 gemi254