How to extend OTA timeout

adam_esp
Posts: 37
Joined: Mon Apr 29, 2019 12:09 pm

How to extend OTA timeout

Postby adam_esp » Sat Jul 24, 2021 3:59 pm

OTA update keeps reporting timeot so it doesn't apply.
How can I extend this OTA time?

...

I (380589) mbedtls: ssl_tls.c:2814 ssl->f_recv(_timeout)() returned 1412 (-0xfffffa7c)

D (380719) emac_esp32: receive len= 1466
D (380719) emac_esp32: receive len= 1466
D (380729) emac_esp32: receive len= 1466
I (380729) mbedtls: ssl_tls.c:2813 in_left: 3067, nb_want: 16413

I (380729) mbedtls: ssl_tls.c:2814 ssl->f_recv(_timeout)() returned 4236 (-0xffffef74)

D (381269) emac_esp32: receive len= 167
D (381569) emac_esp32: receive len= 167
D (381869) emac_esp32: receive len= 167
I (385739) mbedtls: ssl_tls.c:2813 in_left: 7303, nb_want: 16413

E (385739) TRANS_SSL: esp_tls_conn_read error, errno=No more processes
D (385739) HTTP_CLIENT: need_read=289, byte_to_read=289, rlen=-26880, ridx=0
W (385739) HTTP_CLIENT: esp_transport_read returned:-26880 and errno:11
D (385749) HTTP_CLIENT: Data processed 425984 != Data specified in content length 666912
I (385759) OTA_HTTP : EVENT_DISCONNECTED
I (385759) OTA_HTTP : EVENT_DISCONNECTED
W (385769) OTA_dev: SetUpdateStatus: 255 [0xFF]
E (385769) OTA: WAN Firmware Upgrades Failed !

Best regards
Adam

adam_esp
Posts: 37
Joined: Mon Apr 29, 2019 12:09 pm

Re: How to extend OTA timeout

Postby adam_esp » Sun Aug 08, 2021 3:07 pm

Code: Select all


esp_http_client_config_t config = {
			...
			.timeout_ms = 15000,
			.keep_alive_enable = TRUE,
					};


Who is online

Users browsing this forum: No registered users and 106 guests