Hello,
I use aws_fota as starting point on a mobile device with MQTT reporting.
What is the best way to manage loss of connection (how to know and how to cleanly rebuild the link) when I lost connection ?
Hello,
I use aws_fota as starting point on a mobile device with MQTT reporting.
What is the best way to manage loss of connection (how to know and how to cleanly rebuild the link) when I lost connection ?
Hi.
The modem will automatically try to reconnect to the network when the link is lost.
The application can subscribe to updates from the modem (e.g., +CEREG), but there will be a delay from the link is lost until the application is notified.
Another way the application can notice a loss of connection is that the socket is through an error on the socket. This is probably the most likely scenario in your case when performing a FOTA operation.
When you have connected back to AWS, the FOTA download will continue if you use a version newer than this pull request: https://github.com/NordicPlayground/fw-nrfconnect-nrf/pull/1626
If not, you will have to start a new FOTA job in AWS.
Best regards,
Didrik
Hi.
The modem will automatically try to reconnect to the network when the link is lost.
The application can subscribe to updates from the modem (e.g., +CEREG), but there will be a delay from the link is lost until the application is notified.
Another way the application can notice a loss of connection is that the socket is through an error on the socket. This is probably the most likely scenario in your case when performing a FOTA operation.
When you have connected back to AWS, the FOTA download will continue if you use a version newer than this pull request: https://github.com/NordicPlayground/fw-nrfconnect-nrf/pull/1626
If not, you will have to start a new FOTA job in AWS.
Best regards,
Didrik
Ok thank you.