1.1.2.1.1.4.10 BLE_GAP_Disconnect
C
uint16_t BLE_GAP_Disconnect(uint16_t connHandle, uint8_t reason);
Description
Terminate an existing connection.
Events generated
BLE_GAP_EVT_DISCONNECTED Generated when disconnected.
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. |
MBA_RES_INVALID_PARA | Invalid connection handle. |