![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| 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.
| [in] | conn_handle | The connection to set the parameters for. |
| [in] | sec_params | The parameters. If NULL, the security procedure is rejected. |
| [in] | context | The context found in the request event that this function replies to. |
| NRF_SUCCESS | If the reply was successful. |
| NRF_ERROR_NULL | If sec_params or context were NULL. |
| NRF_ERROR_INVALID_PARAM | If the value of sec_params was invalid. |
| NRF_ERROR_INVALID_STATE | If the Peer Manager is not initialized. |