This commit is contained in:
J. Nick Koston 2025-06-29 19:53:29 -05:00
parent 1927f92358
commit ed2c3e626b
No known key found for this signature in database

View File

@ -49,9 +49,11 @@ void AsyncWebServer::begin() {
httpd_config_t config = HTTPD_DEFAULT_CONFIG(); httpd_config_t config = HTTPD_DEFAULT_CONFIG();
config.server_port = this->port_; config.server_port = this->port_;
config.uri_match_fn = [](const char * /*unused*/, const char * /*unused*/, size_t /*unused*/) { return true; }; config.uri_match_fn = [](const char * /*unused*/, const char * /*unused*/, size_t /*unused*/) { return true; };
#ifdef USE_WEBSERVER_OTA
// Increase stack size for OTA operations - esp_ota_end() needs more stack // Increase stack size for OTA operations - esp_ota_end() needs more stack
// during image validation than the default 4096 bytes // during image validation than the default 4096 bytes
config.stack_size = 6144; config.stack_size = 4608;
#endif
if (httpd_start(&this->server_, &config) == ESP_OK) { if (httpd_start(&this->server_, &config) == ESP_OK) {
const httpd_uri_t handler_get = { const httpd_uri_t handler_get = {
.uri = "", .uri = "",