Comments (3)
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.
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.
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)
- How to update variable value on custom html example? HOT 9
- Interface not working using reverse proxy (HTTPS and/or subdirectory) HOT 1
- Is possible to add more than one custom_html? HOT 1
- How to show json value to custom html page? HOT 1
- Add more supported editor files (for example like .yaml) HOT 3
- Difficult to load web-based configuration when the Wifi AP disappears for a long time after connected HOT 1
- Error compiling for board esp8266 HOT 2
- Disable Captive Portal?? HOT 2
- compilation error in platformio HOT 1
- What is the libraries need to use this library? HOT 4
- NO ISSUE, just question FILE DOWNLOAD ? HOT 28
- Crash loading examples HOT 2
- can
- on version 2.0.2 ,the saveOption function does not take effect when used in loop. HOT 4
- Connect to WIFI that doesn't require a password HOT 5
- Won't Store Wifi Credentials when Password is empty. HOT 4
- WDT exception
- how to use broadcastTXT... in esp-fs-webserver
- Minify procedure producing erroneous header
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-fs-webserver.