Tune HTTP and System Stability (#571)

This commit is contained in:
Erik Olof Gunnar Andersson 2024-12-11 23:23:07 +01:00 committed by GitHub
parent fbb9238889
commit 695d84ac2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions

View File

@ -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) {

View File

@ -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");

View File

@ -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