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

◆ nrf_cloud_fota_smp_client_init()

int nrf_cloud_fota_smp_client_init ( const void * smp_reset_cb)

#include <include/net/nrf_cloud.h>

Initialize the SMP client. Called automatically if.

CONFIG_NRF_CLOUD_FOTA 

or

CONFIG_NRF_CLOUD_FOTA_POLL 

is enabled.

Parameters
smp_reset_cbCallback of type dfu_target_reset_cb_t for resetting the SMP device to enter MCUboot recovery mode.
Return values
0SMP client successfully initialized.
-ENOTSUPError;
CONFIG_NRF_CLOUD_FOTA_SMP 
is not enabled.
Returns
A negative value indicates an error.