ble_gap_security_initiate

int
ble_gap_security_initiate(uint16_t conn_handle)

Description

Initiates the GAP encryption procedure.

Parameters

ParameterDescription
conn_handleThe handle corresponding to the connection to encrypt.

Returned values

ValueCondition
0Success.
BLE_HS_ENOTCONNThe there is no connection with the specified handle.
BLE_HS_EALREADYAn encrpytion procedure for this connection is already in progress.
Core return codeUnexpected error.