nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ lwm2m_os_dfu_done()

int lwm2m_os_dfu_done ( bool  successful,
uint32_t  crc32 
)

#include <lib/bin/lwm2m_carrier/include/lwm2m_os.h>

Finalize the current firmware upgrade and CRC-validate the image if required.

Parameters
[in]successfulIndicate if upload was successful.
[in]crc32Expected IEEE CRC32 value to be checked for the whole file in flash. Can be any value if no validation expected.
Return values
0Success.
-EACCESlwm2m_os_dfu_start() was not called beforehand.
-EINVALCRC error.
-EIOInternal error.