diff options
| author | Patrick | 2023-11-13 22:27:04 +0100 |
|---|---|---|
| committer | Patrick | 2023-11-13 22:27:04 +0100 |
| commit | eab8bbd317aa9887fd09c38a963ee80660d75ca0 (patch) | |
| tree | c01385129ee495d27e400231469c5de7a0d0c859 /src/matrix_http_esp32.c | |
| parent | 2130f565861a560c0f5ce98b3cc0c915e241bf79 (diff) | |
| download | matrix_esp_thesis-eab8bbd317aa9887fd09c38a963ee80660d75ca0.tar.gz matrix_esp_thesis-eab8bbd317aa9887fd09c38a963ee80660d75ca0.zip | |
esp32 http change timeout
Diffstat (limited to 'src/matrix_http_esp32.c')
| -rw-r--r-- | src/matrix_http_esp32.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |
