esp_http_client_read with offset for advanced OTA
Posted: Thu Dec 14, 2023 7:35 am
Good morning,
We currently are successfully using OTA via LTE on a handful of devices pretty reliably.
However, there's something with the LTE connection (or the modem library, or our own code) that makes the connection unreliable when performing OTA.
To solve that we want to perfect the OTA system and make it multi-session. This means that if in one connection it downloads 500KB of binary and then it crashes on the next try it will start downloading from that 500KB rather than starting from zero.
Now to the technicalities (and the question): For OTA write we have. But I don't see the alternative for . I don't even know if it is possible on the HTTP protocol to download a file only from a certain point and not the beggining.
So, the question: Is there any function similar to?
We currently are successfully using OTA via LTE on a handful of devices pretty reliably.
However, there's something with the LTE connection (or the modem library, or our own code) that makes the connection unreliable when performing OTA.
To solve that we want to perfect the OTA system and make it multi-session. This means that if in one connection it downloads 500KB of binary and then it crashes on the next try it will start downloading from that 500KB rather than starting from zero.
Now to the technicalities (and the question): For OTA write we have
Code: Select all
esp_ota_write_offset()
Code: Select all
esp_http_client_read()
So, the question: Is there any function similar to
Code: Select all
esp_http_client_read_offset()