int ble_gap_security_initiate(uint16_t conn_handle)
Initiates the GAP encryption procedure.
Parameter | Description |
---|---|
conn_handle | The handle corresponding to the connection to encrypt. |
Value | Condition |
---|---|
0 | Success. |
BLE_HS_ENOTCONN | The there is no connection with the specified handle. |
BLE_HS_EALREADY | An encrpytion procedure for this connection is already in progress. |
Core return code | Unexpected error. |