From: Patrick Date: Mon, 13 Nov 2023 21:27:04 +0000 (+0100) Subject: esp32 http change timeout X-Git-Url: https://gitweb.ps.run/matrix_esp_thesis/commitdiff_plain/eab8bbd317aa9887fd09c38a963ee80660d75ca0?ds=sidebyside esp32 http change timeout --- diff --git a/src/matrix_http_esp32.c b/src/matrix_http_esp32.c index 874afd8..2bdfb50 100644 --- a/src/matrix_http_esp32.c +++ b/src/matrix_http_esp32.c @@ -141,7 +141,7 @@ MatrixHttpConnect( hc->client = esp_http_client_init(&config); - esp_http_client_set_timeout_ms(hc->client, 10000); + esp_http_client_set_timeout_ms(hc->client, 20000); } void @@ -160,7 +160,6 @@ MatrixHttpInit( *hc = (MatrixHttpConnection *)calloc(1, sizeof(MatrixHttpConnection)); (*hc)->host = host; - (*hc)->dataLen = 0; MatrixHttpConnect(*hc);