hhv0001 12/21/2023 05:26 PMHi, back in my Arduino days (two days ago) I had a webserver running on my ESP32-S2. It served one HTML file and a CSS file and Javascript files. There was also JSON going back and forth. The website was used for adjusting settings in my ESP software, for instance choose a colour for the attached LEDs.
I am struggling to find documentation on how to achieve the same with Toit. Including the HTML as a string in my Toit program is not only uncool but even inconvenient. What's the trick here? Do you know?
I read that people have SD-cards connected to their ESP32, but I do not have that and would like to avoid adding hardware to my PCB if possible.
I could get the files from an external webserver but I would rather not depend on that, it opens up a can of worms (i.e. proxies, firewalls, etc.) and I would like the device to be mostly self-sufficient.
Thank for any tips or thoughts on the matter.