- Replace ESP8266WebServer/WebServer with ESPAsyncWebServer
- Update all route handlers to async pattern with AsyncWebServerRequest*
- Replace synchronous HTTPSend() with request->send()
- Add configurable delay constants (REBOOT_DELAY_MS, EXIT_DELAY_MS, ERASE_REBOOT_DELAY_MS)
- Implement scheduled reboot/abort flags instead of blocking delays
- Update WiFiManagerRequestArgs to use AsyncWebServerRequest
- Remove server->handleClient() and server->stop() calls (not needed for AsyncWebServer)
- Update parameter access to use request->getParam() instead of server->arg()
- Add ESPAsyncWebServer to platformio.ini dependencies
- Created WiFiManagerRequestArgs nested class to encapsulate HTTP request arguments
- Updated setSaveParamsCallback to accept WiFiManagerRequestArgs by value
- Updated handleWifiSave() and handleParamSave() to build RequestArgs early
- Updated doParamSave() to accept and use RequestArgs for custom HTML params
- Updated test callbacks to match new signature
- All tests passing (43/43)
- Move library code from src/ to lib/WiFiManager/src/
- Move headers from include/ to lib/WiFiManager/include/
- Move library.json to lib/WiFiManager/
- Update platformio.ini with Unity test framework configuration
- Add test structure following PlatformIO unit testing best practices
- Remove empty src/ directory (not needed for library-only projects)
- Move source files to src/ and headers to include/ directories
- Remove Arduino IDE specific files (.travis.yml, keywords.txt, library.properties, CMakeLists.txt, travis/)
- Update library.json with export section pointing to include/
- Add platformio.ini for development and testing
- Update .gitignore with PlatformIO-specific entries
- Update LICENSE with fork attribution
- Update README.md with PlatformIO-focused installation instructions
Verified working with:
- ESP8266 examples (Basic, Advanced)
- ESP32 examples (Basic)
All builds successful ✅
Compiler warning : format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint32_t'
he compiler warning arises because the format specifier %lu expects a long unsigned int, but the variable free is of type uint32_t (which is typically unsigned int). The ESP32, part of the Espressif32 family, typically defines uint32_t as unsigned int, so using the %u format specifier is appropriate.
* Added setCustomTopBodyElement allowing to define custom HTML to be added at the top of the "<body>" tag.
* Change custom top body element to 'header'
This will make more sense once a footer is added. No functional changes.
* Make custom header concat conditional
Matching the _bodyClass comparison above
* Create getHTTPEnd function
* Add custom body footer functionality
* Fix <small> close tag on update page
* Add missing HTTP ends to exit and close
* Remove 'immediately' from header/footer desc
It's not immediate, the 'wrap' div is added before/after.
---------
Co-authored-by: Andreas Breitschopp <a-breitschopp@ab-tools.com>
* Add body classes argument
Note that the additional function argument for getHTTPHead() includes a default argument for backwards compatibility with the API.
* Add page-specific classes
Allows easy styling of each page
* Change root CSS class to 'home'
Trying to avoid confusion between the class for the root level and the CSS ":root" pseudo-class
* Use conditional body class spacing
Avoids an extra space if a body class is set, but an empty string is passed to the function
* Readme update
Tested on ESP32-S3, so I added the ESP32-S3 shield to the readme
* testing a commit
* Update to Readme
Added ESP32-S3 tag and fixed the release shield to not click away from the project.
* Typos fixed