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
| Parameter | Description | 
|---|---|
| [in] connHandle | Connection handle associated with this connection. | 
| [in] reason | Disconnection reason. See Status definitions. | 
Return values
| Return value | Description | 
|---|---|
| MBA_RES_SUCCESS | Successfully issue a disconnection. | 
| MBA_RES_OOM | Internal memory allocation failure occurred. | 
| MBA_RES_INVALID_PARA | Invalid connection handle. | 
