Giter VIP home page Giter VIP logo

Comments (3)

cotestatnt avatar cotestatnt commented on May 29, 2024

Hi @AlainF-ing and thanks for your interest!
The behavior you encountered is normal: in order not to unnecessarily overwrite the file every time you restart, when the key is present the file is not touched.
This unfortunately has the drawback you encountered, but i prefer this way because in the end, it can only cause problems during the development phase of the project

Regarding the #define CLEAR_OTIONS, this is used only in the example customHTML.ino and not in customOptions.ino

If you look at the code, you can find this:

#if CLEAR_OPTIONS
  if (myWebServer.clearOptions())
    ESP.restart();
#endif

So, when you need to clear the config file the method to be used is clearOptions(), but of course if you use the /edit web page the result is the same.

from esp-fs-webserver.

AlainF-ing avatar AlainF-ing commented on May 29, 2024

Ok and thanks for your quick answer.
As a comment, I am a fan of the FSBrowser.ino on Little FS for ESP8266. For ESP32 this was a disappointment until I
found your library.
Very good work.

from esp-fs-webserver.

cotestatnt avatar cotestatnt commented on May 29, 2024

Thanks for your comment!

If you like this library, I would recommend you also to take a look at this version which, instead of the WebServer core library, is based on the ESPAsyncWebServer library.
ESPAsyncWebServer library and its dependencies are included locally in the sources, so you don't need to install anything else.

async-esp-fs-webserver and esp-fs-webserver can coexist without any problem or interference between them.

Even though I am trying to develop the two projects in parallel, I won't deny that there is more effort on the second one because it has better performance in terms of speed and responsiveness of the pages.

from esp-fs-webserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.