Manage ESP8266 Webpages Better Using String Literals

preview_player
Показать описание
In this video we are going to take a look at using C++ String Literals as a way of better managing webpages on our ESP8266.

I would be interested in hearing how you like to manage webpages and your sketches, let me know in the comments below!

Рекомендации по теме
Комментарии
Автор

Very nice video. Good tips, and straight to the point.
You could set the ESP into AP mode and connect to it directly. That would negate the need for knowing the IP address or needing an existing network to sign into. Then again, you would need to switch to its wifi network each time you use it.

bradtee
Автор

i have a SD Card module conected to my ESP8266, and it has all the html pages(.htm) on that, i've made it so i can just popout the SD card, edit the HTML and Re Insert it. its also handy for saving user data. But your methode is way better for compact projects, or just simple ones. so, Thanks for the video! :D

shinevisionsv
Автор

If you wanted to add sensor values etc to the webpage could you not create your string literal with "place markers" (something like "###data-here###") and then do a string replace on the variable that contains the string literal in the main sketch and say "replace all instances of '###data-here###' with $valueOfSensor"?

gavinsmalley
Автор

Brian, would you make a video how to parse json string on website ? thank you :)
Marc.

MPElectronique
Автор

With the HTML code contained in a string literal, how can sensor data (for example) be included in the HTML code to publish on a webpage ? Thanks

neilcameron
visit shbcf.ru