• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 Web Server – Display Sensor Readings

Q&A Forum › ESP32 Web Server – Display Sensor Readings
0 Vote Up Vote Down
Brian Webb asked 7 years ago

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
 
username brianmwebb

2 Answers
0 Vote Up Vote Down
James answered 7 years ago

Need more details. What web page are you using?
Node-red does this. Every message received from MQTT updates the display.

0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

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.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.