BLE_L2CAP_CbDiscReq
C
uint16_t BLE_L2CAP_CbDiscReq(uint8_t leL2capId);Description
Issues a disconnect request for a credit-based connection channel.
Events generated
BLE_L2CAP_EVT_CB_DISC_IND is generated when a credit-based connection is disconnected.
Parameters
| Parameter | Description |
|---|---|
| [in] leL2capId | The L2CAP instance identifier. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Successfully issued a disconnect request. |
| MBA_RES_OOM | Internal memory allocation failure occurred. |
| MBA_RES_NO_RESOURCE | No transmit buffers available for sending L2CAP disconnect request. |
| MBA_RES_FAIL | Failed to send the disconnect request due to an L2CAP instance error. |
