Skip to content

Commit

Permalink
Tune HTTP and System Stability
Browse files Browse the repository at this point in the history
  • Loading branch information
eandersson committed Dec 10, 2024
1 parent 13791f1 commit 23d3509
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/connect/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,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) {
Expand Down
1 change: 1 addition & 0 deletions main/http_server/http_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 2 additions & 0 deletions sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ CONFIG_SPIFFS_OBJ_NAME_LEN=64
CONFIG_HTTPD_MAX_URI_LEN=2048
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y
CONFIG_ESP_WIFI_11KV_SUPPORT=y
CONFIG_BT_ENABLED=n
CONFIG_LWIP_MAX_SOCKETS=16

0 comments on commit 23d3509

Please sign in to comment.