diff --git a/components/connect/connect.c b/components/connect/connect.c index 318f8ac..3859efd 100644 --- a/components/connect/connect.c +++ b/components/connect/connect.c @@ -231,6 +231,9 @@ void wifi_init(const char * wifi_ssid, const char * wifi_pass, const char * host /* Start WiFi */ ESP_ERROR_CHECK(esp_wifi_start()); + /* Disable power savings for best performance */ + ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_NONE)); + /* Set Hostname */ esp_err_t err = esp_netif_set_hostname(esp_netif_sta, hostname); if (err != ERR_OK) { diff --git a/main/http_server/http_server.c b/main/http_server/http_server.c index e626fb7..d9ff4bb 100644 --- a/main/http_server/http_server.c +++ b/main/http_server/http_server.c @@ -691,6 +691,7 @@ esp_err_t start_rest_server(void * pvParameters) httpd_config_t config = HTTPD_DEFAULT_CONFIG(); config.uri_match_fn = httpd_uri_match_wildcard; + config.max_open_sockets = 10; config.max_uri_handlers = 20; ESP_LOGI(TAG, "Starting HTTP Server"); diff --git a/sdkconfig.defaults b/sdkconfig.defaults index 40a1fa0..5a9107c 100644 --- a/sdkconfig.defaults +++ b/sdkconfig.defaults @@ -11,3 +11,5 @@ CONFIG_HTTPD_MAX_URI_LEN=2048 CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y CONFIG_ESP_WIFI_11KV_SUPPORT=y CONFIG_LV_CONF_SKIP=n +CONFIG_BT_ENABLED=n +CONFIG_LWIP_MAX_SOCKETS=16