mirror of
https://github.com/esphome/esphome.git
synced 2025-08-07 10:57:46 +00:00
tweak
This commit is contained in:
parent
94845222ad
commit
2e4d7301f2
@ -51,11 +51,6 @@ 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
|
|
||||||
// during image validation than the default 4096 bytes
|
|
||||||
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 = "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user