I have had several problems with the WEB pages displaying properly.
For this course I have been using the Firefox Browser, my normal browser. I have noticed that several of the course
projects did not behave exactly as described, but I have just worked around problems or ignored them.
When I loaded 2_3_Outputs_WebSockets project, I got the HTML display, but the switch would not switch! I went back through everything 3 more times re loading everything each time, but it still acted the same. Even after rebooting my PC the problem persisted.
I was using Platformio and was about to try using the arduino IDE when my old brain had a news flash… it would be much simpler to try other browsers first.
I brought up the Microsoft Edge Browser and the WEB page functioned correctly, then I tried the Google browser on my cellphone and it worked.
I then went back to Firefox on my Windows PC and IT WORKED!
I can not explain why The Firefox display of the page did not work for 3 days, but after using the other browsers it did.
I DID NOT reload the project on my ESP32, and I did power cycle it several times during my attempts to get the WEB page to work.
I am at a loss. I can not re create the problem.
Just an FYI
Dave
Hi.
You may need to hard refresh your web browser between projects.
Maybe your browser is caching the HTML, CSS or Javascript from the previous project, so it won’t work as expected.
For Firefox, this seem to be the command to hard refresh the browser:
Hold down Ctrl and click the Reload button. OR, Hold down Ctrl and press F5.
I hope this helps.
Regards,
Sara