Hieromon / AutoConnect

An Arduino library for ESP8266/ESP32 WLAN configuration at runtime with the Web interface
https://hieromon.github.io/AutoConnect/
MIT License
911 stars 190 forks source link

Update UI without refresh #627

Closed pierluigizagaria closed 1 week ago

pierluigizagaria commented 1 week ago

I'm trying to implement a UI interface and took the LED example as reference. The command that will update the ui is this one. https://github.com/Hieromon/AutoConnect/blob/f21f57d4b909a4540bea06655aef9b88e5d1b992/examples/FetchLED/FetchLED.ino#L81

However the UI gets updated only by refreshing the page. Is this the only way? What could I do to update the UI without refreshing the page?

pierluigizagaria commented 1 week ago

Fixed by updating the innerText and not value in a ACText