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

◆ pm_sec_params_set()

uint32_t pm_sec_params_set ( ble_gap_sec_params_t * sec_params)

#include <peer_manager.h>

Provide pairing and bonding parameters to use for pairing procedures.

Until this function is called, all bonding procedures that are initiated by the peer are rejected.

This function can be called multiple times with different parameters, even with NULL as sec_params, in which case the Peer Manager starts rejecting all procedures again.

Parameters
[in]sec_paramsSecurity parameters to be used for subsequent security procedures.
Return values
NRF_SUCCESSIf the parameters were set successfully.
NRF_ERROR_INVALID_PARAMIf the combination of parameters is invalid.
NRF_ERROR_INVALID_STATEIf the Peer Manager is not initialized.
NRF_ERROR_INTERNALIf an internal error occurred.