• 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

ESP8266 with BME280 example code

Q&A Forum › Category: ESP8266 › ESP8266 with BME280 example code
0 Vote Up Vote Down
Stephen Stocker asked 2 years ago

Is there a way to add a meta tag to refresh the web page every 10 seconds, instead of having to click the refresh on the browser?  I placed a line after the <head> with the following and I get errors: ptr +=”<meta http-equiv=”refresh” content=10>”;
Thanks for your website, get lots of great info.

2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
What errors do you get? And what project are you following?
Regards,
Sara

0 Vote Up Vote Down
LoetLuemmel answered 2 years ago

Hi Stephen,
Just check your quotes around -> content=10 <-
I think there is a quote missing.
The following line is the W3 original and I see a difference with the quotes.

<meta http-equiv="refresh" content="5">

But as requested by Sara, what code sample are you following?
Because I also remember once used such a parsing function with “ptr + <html>” in conjunction with a weather station project and BOSCH BMP sensor.
Here the tricky part might be including the double quotes from the meta tag with the ptr string double quotes.
I don’t know, if it is simply allowed to replace the inner double quotes with single quotes.
Could you guide us to that code snippet?
Good luck and happy coding,
LoetLuemmel

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.