Skip to content

Releases: cotestatnt/esp-fs-webserver

esp-fs-webserver 2.0.6

13 Mar 12:50
Compare
Choose a tag to compare
  • 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

12 Mar 08:04
Compare
Choose a tag to compare
  • 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

  • Add option for requiring HTTP basic authentication on all pages. by @sjmf in #46

New Contributors

  • @sjmf made their first contribution in #46

Full Changelog: 2.0.4...2.0.5

esp-fs-webserver 2.0.4

20 Feb 14:44
Compare
Choose a tag to compare

/setup web page decor (WiFi state info moved to header section)

esp-fs-webserver 2.0.3

17 Feb 10:04
Compare
Choose a tag to compare
  • 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

24 Jan 06:38
Compare
Choose a tag to compare
  • 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

19 Jan 17:32
Compare
Choose a tag to compare
  • 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 with closeConfiguration() 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

16 Jan 13:34
Compare
Choose a tag to compare

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

14 Jan 14:50
a1c5a9b
Compare
Choose a tag to compare

-fix wifi connection
-example updated

Full Changelog: 1.3.1...1.3.2

1.3.1

11 Jan 11:23
Compare
Choose a tag to compare
  • 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

11 Jan 10:42
Compare
Choose a tag to compare
  • 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