cotestatnt / esp-fs-webserver

ESP32/ESP8266 webserver, WiFi manager and web editor Arduino library
MIT License
105 stars 27 forks source link

What is the libraries need to use this library? #38

Closed toneytang closed 5 months ago

toneytang commented 6 months ago

I am very intrested in your projject. But have no idea how to use it. Do you have more detailed help file?

Thanks.

cotestatnt commented 6 months ago

Hello @toneytang and thank you for your interest.

The only external dependency is ArduinoJson library, everything else is part of the Arduino core for ESP32 or ESP8266 and therefore you don't need to install anything else.

With latest release I have deeply revisited the built-in /setup web page: now you can update the firmware OTA and also upload any source files (there are many nice examples included in the "data" subfolder).

In this regard, in the examples I tried to show all the functions that the library makes available and they are certainly the first point to start from. What would you like to use it for? WiFi manager and parameter configuration or to design a sort of User Interface?

toneytang commented 6 months ago

Hi, @cotestatnt . Thank you for your reply. I just managed it working under Arduino IDE yesterday. The project is wonderful, it satisfies almost everything of my needs. So, the thing I need to figure out is how to customize the webpage and learn how to use it.

I am going to use it for an little sensor to store the data on an SD card and also has web ui to view the data easily.

toneytang commented 6 months ago

By the way, may I ask what is the size for the FS? I am using ESP32-C3-MINI-H4 module.

cotestatnt commented 6 months ago

how to customize the webpage

This a possibility, but not a must: the /setup web page can be customized injecting your own HTML/CSS/JS code (check the customHTML.ino example), but it is mainly intended as an endpoint useful for configure a project, not as UI.. You could upload a complete custom web sources as for UI, but it'your choice offcourse. I have an old project similar to your needs, if you like I can provide you.

By the way, may I ask what is the size for the FS?

This depends from the board and not from MCU type. The SPI flash memory with ESP32 is always external, so every board maker can choose the size he need. Keep in mind that library can work also directly from SD memory aniway because it's indipendent from filesystem type.