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

◆ nrf_cloud_fota_fmfu_dev_set()

int nrf_cloud_fota_fmfu_dev_set ( const struct dfu_target_fmfu_fdev *const  fmfu_dev_inf)

#include <include/net/nrf_cloud.h>

Set the flash device used for full modem FOTA updates. This function is intended to be used by custom REST-based FOTA implementations. It is called internally when nrf_cloud_init is executed if.

embed:rst:inline :kconfig:option:`CONFIG_NRF_CLOUD_FOTA` 

is enabled. It can be called before nrf_cloud_init if required by the application.

Parameters
[in]fmfu_dev_infFlash device information.
Return values
0Flash device was successfully set.
1Flash device has already been set.
Returns
A negative value indicates an error.