Please find the details regarding the OTA Issue.
Build environment:
Code: Select all
SDK: ESP-IDF v4.3.3
Device: ESP32
Component: OTA
Issue:
Facing the issue during the OTA update,
While OTA-binary downloading turns off the internet(Router is still On but only internet goes off) OTA task timeout is not happening, Task is stuck inside the OTA download loop continuously.
From the debug traces I can see the following traces, whenever the internet is disconnected.
Code: Select all
E (116767) TRANSPORT_BASE: esp_tls_conn_read error, errno=No more processes
W (116767) HTTP_CLIENT: esp_transport_read returned:-26880 and errno:11
Code snippet:
Code: Select all
Using the advanced_https_ota_example.c
advanced_ota_example_task()
esp_err_t ota_finish_err = ESP_OK;
esp_http_client_config_t config = {
.url = CONFIG_EXAMPLE_FIRMWARE_UPGRADE_URL,
.cert_pem = (char *)server_cert_pem_start,
.timeout_ms = CONFIG_EXAMPLE_OTA_RECV_TIMEOUT,
.keep_alive_enable = true,
};
Please note that the same case tested with is ESP-IDF v5.1.1 and working as expected.
As latest sdk migration currently not possible, please help me to resolve the issue using ESP-IDFv4.4.3