-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net: lib: nrf_cloud_fota_poll: API Improvements for asynchronous use #20545
Conversation
After documentation is built, you will find the preview for this PR here. Preview links for modified nRF Connect SDK documents: https://ncsdoc.z6.web.core.windows.net/PR-20545/nrf/external_comp/bt_fast_pair.html |
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 3233db2820eb42aaad6075cbb1e6b5475ea96a90 more detailssdk-nrf:
Github labels
List of changed files detected by CI (7)
Outputs:ToolchainVersion: 4ffa2202d5 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
b267134
to
b8ce64a
Compare
|
You can find the documentation preview for this PR here. |
b8ce64a
to
f51a101
Compare
02771d5
to
0aedd44
Compare
0aedd44
to
b3d90a6
Compare
a87439e
to
3be51a9
Compare
3be51a9
to
1e6fb92
Compare
This patch includes several improvements and fixes to the nRF Cloud CoAP FOTA polling library. The changes are as follows: - Added a new API to apply the FOTA update after download, enabling asynchronous use and allowing the application to control when to shut down the modem pre applying a new modem image. This improves separation of concerns and modularity. For synchronous use, shutdown and FOTA application are handled internally by the library in the same function call. - The library now polls every 10 percent for the status of the job to check if it has been canceled by the cloud during download. Previously, the library would simply download the firmware and apply it without verifying whether the job had been canceled by the cloud. - Minor refactoring for improved readability and maintainability of the code. For an example of using the asynchronous API, see: https://github.com/nrfconnect/Asset-Tracker-Template Signed-off-by: Simen S. Røstad <simen.rostad@nordicsemi.no>
1e6fb92
to
3233db2
Compare
So many teams.... I still need approval from @nrfconnect/ncs-co-build-system Please have a look |
This patch includes several improvements and fixes to the
nRF Cloud CoAP FOTA polling library. The changes are as follows:
Added a new API to apply the FOTA update after download, enabling
asynchronous use and allowing the application to control when to shut
down the modem pre applying a new modem image.
This improves separation of concerns and modularity.
For synchronous use, shutdown and FOTA application are handled
internally by the library in the same function call.
The library now polls every 10 percent for the status of the job
to check if it has been canceled by the cloud during download.
Previously, the library would simply download the firmware and
apply it without verifying whether the job had been canceled
by the cloud.
Minor refactoring for improved readability and maintainability
of the code.