![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| 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.
| [in] | sec_params | Security parameters to be used for subsequent security procedures. |
| NRF_SUCCESS | If the parameters were set successfully. |
| NRF_ERROR_INVALID_PARAM | If the combination of parameters is invalid. |
| NRF_ERROR_INVALID_STATE | If the Peer Manager is not initialized. |
| NRF_ERROR_INTERNAL | If an internal error occurred. |