• 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

Asynchronous Temperature and Humidity Web Server with Auto Update

Q&A Forum › Category: ESP32 › Asynchronous Temperature and Humidity Web Server with Auto Update
0 Vote Up Vote Down
Vincent Kievits asked 5 years ago

Hi Rui,
I ran into a problem in the code. The line for the humidity unit had the % sign used. however this goes wrong. (The code thinks that all code belongs to a placeholder after that sign?). I solved it bij placing a dubble %% sign. although I have no idea if this is the correct way, but it worked.

<sup class="units">%</sup> original

<sup class="units">%%</sup> corrected

kind regards,
Vincent Kievits

10 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.

You can replace the % with the corresponding HTML entity. So, replace your % sign with the following:
%percent;

Regards,
Sara

0 Vote Up Vote Down
Steve Mercer answered 5 years ago

Shouldn’t that be “%&percnt;”?

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.

I’m sorry.

The HTML entity was automatically converted.
You can copy it from here:
https://gist.githubusercontent.com/sarasantos/058569d36e6d2e47adc38f793c35663b/raw/4d7fa772b227ad4d67c5fc6b0c868f0084f0daa3/percent-html-entity.html
Regards,
Sara

0 Vote Up Vote Down
Steve Mercer answered 5 years ago

It is somewhat difficult to post an html entity into a forum post that uses HTML 😉

0 Vote Up Vote Down
Vincent Kievits answered 5 years ago

hi,
@sara, @steve, thanks for your help and explanation!

0 Vote Up Vote Down
Vincent Kievits answered 5 years ago

maybe to correct the code in the course? 

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.
Yes, we’ll fix the code in the course. Thank you.
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

I’ll close this issue.
If you need further help, you just need to open a new question in our forum.
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Code fixed:
https://github.com/RuiSantosdotme/ESP32-Course/blob/master/code/WiFi_Web_Server_DHT/WiFi_Web_Server_DHT.ino
😀

0 Vote Up Vote Down
Vincent Kievits answered 5 years ago

Great to see, thanks a lot

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

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition 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.