![]() |
nRF Connect SDK API 3.3.99
|
| int lwm2m_os_dfu_fragment | ( | const char * | buf, |
| size_t | len, | ||
| uint32_t | crc32 ) |
#include <lib/bin/lwm2m_carrier/include/lwm2m_os.h>
Receive a firmware image fragment and validate its CRC if required.
| [in] | buf | Buffer containing the fragment. |
| [in] | len | Length of the fragment in bytes. |
| [in] | crc32 | Expected IEEE CRC32 value to be checked for the whole fragment. Can be any value if no validation expected. |
| 0 | Success. |
| -EACCES | lwm2m_os_dfu_start() was not called beforehand. |
| -ENOMEM | Not enough memory to process the fragment. |
| -EINVAL | CRC error. |
| -EIO | Internal error. |