i'm searching for an example or better a tutorial about an interactive webpage that is displayed via my wifi access point.
My wifi access point and the http server is already running on my ESP32-C6.
I have an index.html, some other .html files and .css files onto the mcu doing it with spiffs filesystem.
First of all i'm struggling with my .css files, these aren't loaded by default when i log in to my access point, go to the browser window, type in the ip address there is only my index.html file loaded.
Part of index.html, directory storage was created by spiffs filesystem and index.css was uploaded
Code: Select all
<link rel="stylesheet" type="text/css" href="storage/index.css">
It works fine if i place my css code into the html file.
Second thing im thinking about is how to get data typed in a field of my webpage to my c code and send back this value to another field in my html file, so that there will be no reload of the page or something. Is it possible with the normal http server or do i need something else?
On google i only found several examples by the Arduino IDE, where it seems to be very simple to load any .html files and .css files onto to webserver plus to playce a variable in the .html code to read it out in the arduino c code. Unfortunately the ESP32-C6 is not supported by the official arduino ide so far.
Maybe anybody know a good example or tutorial for this with the ESP-IDF?