BLE_L2CAP_CbSendSdu
C
uint16_t BLE_L2CAP_CbSendSdu(uint8_t leL2capId, uint16_t length, uint8_t *p_payload);Description
Sends an L2CAP SDU (Service Data Unit) over a credit-based connection channel.
Parameters
| Parameter | Description |
|---|---|
| [in] leL2capId | The L2CAP instance identifier. |
| [in] length | The length of the L2CAP SDU. See the maximum size definition L2CAP maximum SDU size. |
| [in] p_payload | Pointer to the L2CAP SDU buffer. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Successfully sent an L2CAP SDU. |
| MBA_RES_OOM | Internal memory allocation failure occurred. |
| MBA_RES_NO_RESOURCE | No transmit buffers available for sending L2CAP data. |
| MBA_RES_FAIL | Failed to send the SDU due to an L2CAP instance error. |
