![]() |
nRF Connect SDK API 3.4.99
|
| int lwm2m_os_dfu_start | ( | int | img_type, |
| size_t | max_file_size, | ||
| bool | crc_validate ) |
#include <lwm2m_os.h>
Start a firmware upgrade.
| [in] | img_type | DFU target type to be initialized. |
| [in] | max_file_size | Estimate of the new firmware image to be received. May be greater than or equal to the actual image size received by the end. |
| [in] | crc_validate | Flag to indicate whether to validate the incoming image fragments by means of IEEE CRC32. |
| 0 | Ready to start a new firmware upgrade. |
| -EBUSY | Another firmware upgrade is already ongoing. |
| -EFBIG | File size exceeds the DFU area size. |
| -ENOTSUP | Firmware image not supported or unknown. |
| -EIO | Internal error. |