Releases: cotestatnt/esp-fs-webserver
esp-fs-webserver 2.0.6
- solved websocket library conflicts if ArduinoWebSockets is installed
- ESP32 mDNS bug fix
Full Changelog: 2.0.5...2.0.6
esp-fs-webserver 2.0.5
- Added option for requiring HTTP basic authentication on all pages.
- Added builtin websocket (based on ArduinoWebSockets library)
- WiFi scan now is perfomed in asyncrhonously mode
What's Changed
New Contributors
Full Changelog: 2.0.4...2.0.5
esp-fs-webserver 2.0.4
/setup
web page decor (WiFi state info moved to header section)
esp-fs-webserver 2.0.3
- AP IP Address now can be settled from user
- hostname and server port can be settled at runtime (for example loading it as configuration options)
Full Changelog: 2.0.2...2.0.3
esp-fs-webserver 2.0.2
- Bug fix (when server was started without options like in simpleServer.ino, a bad config.json file was created)
Full Changelog: 2.0.1...2.0.2
esp-fs-webserver 2.0.1
- drastically reduced the number of read/write accesses to the configuration file during setup:
only once at boot and then the file can be closed manually withcloseConfiguration()
method or automatically when the server is started - setup page fix ('/' character not needed in some situations)
- some examples updated
Full Changelog: 2.0.0...2.0.1
esp-fs-webserver 2.0.0
Please read carefully: this is a breaking release!
With version 2.x the FSWebServer
class is directly inherited from the parent WebServerClass
.
Due to this important change, the class constructor has been completely revisited.
If you want to update a project to this version, it is therefore necessary to make some changes.
Class constructor
OLD
#ifdef ESP8266
ESP8266WebServer server(80);
#elif defined(ESP32)
WebServer server(80);
#endif
FSWebServer myWebServer(LittleFS, server);
NEW
FSWebServer myWebServer(LittleFS, 80);
Updated and removed methods
The begin()
method of the parent class returns a void then the statement if (myWebServer.begin())
is not valid and you need to call only myWebServer.begin();
(without if statement).
The method addHandler()
was removed, the you need to use directly the parent class method on()
ACE web editor
If you want to use the included page /edit
, now it must be explicitly enabled during setup()
or where you need.
Since the information relating to the filesystem (label, maximum size and free space) is strictly related to the type of filesystem you want to use, it is necessary to pass a callback function that will provide this information
Callback function
#ifdef ESP32
void getFsInfo(fsInfo_t* fsInfo) {
fsInfo->fsName = "LittleFS";
fsInfo->totalBytes = LittleFS.totalBytes();
fsInfo->usedBytes = LittleFS.usedBytes();
}
#else
void getFsInfo(fsInfo_t* fsInfo) {
fsInfo->fsName = "LittleFS";
}
#endif
.....
// Enable ACE FS file web editor and add FS info callback function
myWebServer.enableFsCodeEditor(getFsInfo);
Page authentication
/setup
and /edit
built-in web pages can be restricted with user and password authentication
// set /setup and /edit page authentication
myWebServer.setAuthentication("admin", "admin");
ArduinoJson 7.x
The use of the ArduinoJson library has been adapted to the new 7.x version while maintaining compatibility with previous versions
esp-fs-webserver 1.3.2
-fix wifi connection
-example updated
Full Changelog: 1.3.1...1.3.2
1.3.1
- added manual WiFi configuration (IP, gateway, subnet)
- /setup and /config web pages updated
- serial log refactored
- /setup page configuration refactored (distinct class)
- capitve portal bug fix
- examples updated with some new API
Full Changelog: 1.2.8...1.3.1
esp-fs-webserver 1.3.0
- added manual WiFi configuration (IP, gateway, subnet)
/setup
and/config
web pages updated- serial log refactored
/setup
page configuration refactored (distinct class)- capitve portal bug fix
Full Changelog: 1.2.8...1.3.0