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

◆ lwm2m_os_dfu_img_type()

int lwm2m_os_dfu_img_type ( const void *const buf,
size_t len,
struct lwm2m_os_dfu_header ** header )

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

Find the image type for the buffer of bytes received.

Parameters
[in]bufA buffer of bytes which are the start of a binary firmware image.
[in]lenThe length of the provided buffer.
[out]headerDFU image header descriptor. Only applicable to MCUboot-style upgrades over multiple files.
Returns
Identifier for a supported image type or LWM2M_OS_DFU_IMG_TYPE_NONE if image type is not recognized or not supported.