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

◆ dfu_target_write()

int dfu_target_write ( const void *const  buf,
size_t  len 
)

#include <include/dfu/dfu_target.h>

Write the given buffer to the initialized DFU target.

Parameters
[in]bufA buffer of bytes which contains part of a binary firmware image.
[in]lenThe length of the provided buffer.
Returns
Positive identifier for a supported image type or a negative error code indicating reason of failure.