Hi
Could anyone please point me to a good example of creating a basic webserver with a chart to show some sensor readings?
I found a very good tutorial video on youtube : https://www.youtube.com/watch?v=1TGuw-cSR_I
Unfortunately, it is 2 years old, and the instructions on putting the index.html onto the C3 using the ESP32 Sketch Data Upload does not seem to work for ESP32-C3 modules.
I am stuck now, since I don't know if it is a SPIFFS versioning issue, or just the uploader tool to put the index.html file onto the C3 (and whether there is another way to do it)?
Appreciate any assistance
ESP32 C3 WebServer over WiFi with Charting example please.
-
- Posts: 3
- Joined: Fri Oct 30, 2020 4:52 pm
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: ESP32 C3 WebServer over WiFi with Charting example please.
I prefer to embed the html in the firmware, rather than having it separate on a filesystem. This means it gets updated when you flash via OTA, and it gets verified by checksum on every boot (although I don't think arduino-esp32 does this).
https://github.com/lbernstone/rrdtool_E ... no#L34-L58
In production, I typically have a separate header file containing each html file, which gets included in the main app. This makes it easy to develop a full webapp, and then script the packaging into the code (as compressed files).
https://github.com/lbernstone/rrdtool_E ... es/basicDB
https://github.com/lbernstone/rrdtool_E ... no#L34-L58
In production, I typically have a separate header file containing each html file, which gets included in the main app. This makes it easy to develop a full webapp, and then script the packaging into the code (as compressed files).
https://github.com/lbernstone/rrdtool_E ... es/basicDB
Who is online
Users browsing this forum: No registered users and 51 guests