BLE_GAP_Disconnect

C

uint16_t BLE_GAP_Disconnect(uint16_t connHandle, uint8_t reason);

Description

Terminates an existing connection.

Events generated

BLE_GAP_EVT_DISCONNECTED is generated upon disconnection.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] reasonDisconnection reason. See GAP_STATUS.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully issues a disconnection.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_INVALID_PARAInvalid connection handle.