nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ pm_conn_sec_params_reply()

uint32_t pm_conn_sec_params_reply ( uint16_t conn_handle,
ble_gap_sec_params_t * sec_params,
const void * context )

#include <peer_manager.h>

Provide security parameters for a link.

This function is optional, and must be called in reply to a PM_EVT_CONN_SEC_PARAMS_REQ event, before the Peer Manager event handler returns. If it is not called in time, the parameters given in pm_sec_params_set are used.

Parameters
[in]conn_handleThe connection to set the parameters for.
[in]sec_paramsThe parameters. If NULL, the security procedure is rejected.
[in]contextThe context found in the request event that this function replies to.
Return values
NRF_SUCCESSIf the reply was successful.
NRF_ERROR_NULLIf sec_params or context were NULL.
NRF_ERROR_INVALID_PARAMIf the value of sec_params was invalid.
NRF_ERROR_INVALID_STATEIf the Peer Manager is not initialized.