Skip to content

Migrate web server to ESPAsyncWebServer#661

Open
Gobol wants to merge 1 commit into
rstrouse:mainfrom
Gobol:async-webserver-stabilization
Open

Migrate web server to ESPAsyncWebServer#661
Gobol wants to merge 1 commit into
rstrouse:mainfrom
Gobol:async-webserver-stabilization

Conversation

@Gobol

@Gobol Gobol commented May 21, 2026

Copy link
Copy Markdown

This PR migrates the project from the synchronous WebServer API to ESPAsyncWebServer.

Improvements:

  • move request-scoped state into an explicit compatibility context
  • stop buffering multipart upload in RAM
  • remove body collection from static asset and read-only routes
  • add frontend null guards to avoid bootstrap failures when optional panels are missing

Changes:

  • replace WebServer usage with AsyncWebServer
  • add a compatibility layer in Web.h / Web.cpp
  • update JsonResponse to use async response streams
  • switch static file serving and backup/download responses to async responses
  • update upload handlers for async callbacks
  • add ESP Async WebServer and AsyncTCP to CI/release workflows

Validation:

  • built successfully with arduino-cli for generic ESP32
  • verified on hardware via HTTP OTA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant