![]() |
S145 SoftDevice for nRF54LV10 API documentation 10.0.0
|
| uint32_t sd_ble_gap_lesc_dhkey_reply | ( | uint16_t | conn_handle, |
| uint8_t | sec_status, | ||
| ble_gap_lesc_dhkey_t const * | p_dhkey ) |
#include <ble_gap.h>
Reply with an LE Secure connections DHKey.
This function is only used to reply to a BLE_GAP_EVT_LESC_DHKEY_REQUEST, calling it at other times will result in an NRF_ERROR_INVALID_STATE.
| This function is used during authentication procedures, see the list of events in the documentation of sd_ble_gap_authenticate. |
| [in] | conn_handle | Connection handle. |
| [in] | sec_status | Security status, see GAP Security status
|
| [in] | p_dhkey | LE Secure Connections DHKey. This parameter is ignored if sec_status is not set to BLE_GAP_SEC_STATUS_SUCCESS. |
| NRF_SUCCESS | DHKey successfully set. |
| NRF_ERROR_INVALID_ADDR | Invalid pointer supplied. |
| NRF_ERROR_INVALID_PARAM | Invalid parameter(s) supplied. |
| NRF_ERROR_INVALID_STATE | Invalid state to perform operation. Either:
|
| BLE_ERROR_INVALID_CONN_HANDLE | Invalid connection handle supplied. |