dear Nordic Support,
I am using fota_download which I think is from you guys. I get following error:
[00:45:56.616,729] <inf> mcu_upd: Download progress: 32%
at notif: +CSCON: 0
at notif: +CSCON: 1
[00:46:16.259,887] <inf> mcu_upd: Download progress: 32%
[00:46:16.260,833] <err> download_client: Failed to send HTTP request, errno 128
[00:46:16.260,864] <wrn> fota_download: Download socket error. 49 retries left...
[00:46:37.443,450] <err> download_client: Unable to connect, errno 111
[00:46:37.445,129] <err> fota_download: Download client error
[00:46:37.445,159] <inf> dfu_target_mcuboot: MCUBoot image upgrade aborted.
[00:46:37.445,190] <err> mcu_upd: Received error from fota_download
The download client has some retry mechanism when connection with server is lost. Of course it can not deal with issues if the device looses the cellular connection (using LTE-M or NB-IoT).
When getting this error or a similar error I would like to reestablish the LTE connection and resume the FOTA_download.
I am not so sure how to do the resume: If I look at the fota_download.c it looks as if it can deal with a resume. I believe I can just call fota_download_start again and the underlying code will detect it is a resume (based on dfu_target_offset_get).
Before I rewrite my whole code, I would like to know if this is the case. I could not find any code where this resume is used actually, would be useful if you could point me in the good direction.
I am using this with MCUBoot.
Kind regards