Hi, great course material thankyou
ESP32 Web Server – Display Sensor Readings
I would like to display a value from a sensor that changes every few seconds
At the moment I would need to manually refresh the screen to see the latest value. What would you recommend for being able yo keep the webpage updated automatically (every second) with the latest sensor values
Need more details. What web page are you using?
Node-red does this. Every message received from MQTT updates the display.
Hello Brian, you can place the HTML <head> tags:
<meta http-equiv="refresh" content="5">
That HTML snippet will automatically refresh the web page every 5 seconds. Can you add it to your code?
Make sure you use the escape \ character:
<meta http-equiv=\"refresh\" content=\"5\">
Let me know your results.