Skip to content

cotestatnt/async-esp-fs-webserver

Repository files navigation

AsyncFsWebServer

ESP32/ESP8266 web server, WiFi manager, and ACE web editor Arduino library. Based on ESPAsyncWebServer by @ESP32Async.

This library is the async equivalent of esp-fs-webserver: it uses the ESP Async WebServer library instead of the default web server.

Dependencies

Install the following dependencies. Remove any previously installed clones or old versions first, as they may cause conflicts.

Documentation (available methods + usage)

Note: Starting from version 2.0.0, the ESP32 Arduino core introduced LittleFS, like ESP8266. The examples in this library are written to use it by default on both platforms. Change this if you prefer other file systems.

WiFi and options manager

Thanks to the built-in /setup page (about 8 KB of program space), you can scan and set WiFi credentials and other freely configurable parameters.

image

image

Web server file upload and OTA updates

The /setup page also allows remote firmware updates (OTA).

In addition to built-in firmware update functionality, you can also upload your web server content all at once (typically the files are placed inside the folder data of your sketch).

image

This page can also be extended with custom HTML and JavaScript code to create smart and powerful web applications.

In the image below, for example, HTML and JavaScript code to provision devices on the well-known ThingsBoard IoT platform is added at runtime from the Arduino sketch (see the customHTML example).

image

ACE web file editor/browser

Thanks to the built-in /edit page, you can upload, delete, and edit HTML/CSS/JavaScript source files directly from your browser and immediately view changes at runtime, without recompiling the firmware. The page can be enabled at runtime using enableFsCodeEditor() and it occupies about 6.7 KB of program space.

image

If you like this work, please consider sponsoring this project!

About

ESP32/ESP8266 WebServer, WiFi manager and ACE web editor Arduino library. Based on ESPAsyncWebServer

Resources

License

Stars

Watchers

Forks

Packages

No packages published