BLE_L2CAP_CbDiscReq
C
uint16_t BLE_L2CAP_CbDiscReq(uint8_t leL2capId);Description
Issue a disconnect request to credit based connection channel.
Events generated
BLE_L2CAP_EVT_CB_DISC_IND Generated when a credit based connection is disconnected.
Parameters
| Parameter | Description | 
|---|---|
| [in] leL2capId | L2cap instance. | 
Return values
| Return value | Description | 
|---|---|
| MBA_RES_SUCCESS | Successfully issue a L2cap disconnect request. | 
| MBA_RES_OOM | Internal memory allocation failure. | 
| MBA_RES_NO_RESOURCE | No Transmit buffers available for sending L2cap disconnect request. | 
| MBA_RES_FAIL | Fail to send L2cap disconnect request by error L2cap instance. | 
