1.2.2.1.3.4.8 BLE_L2CAP_CbSendSdu
C
uint16_t BLE_L2CAP_CbSendSdu(uint8_t leL2capId, uint16_t length, uint8_t *p_payload);
Description
Send a L2cap SDU over credit based connection channel.
Parameters
Parameter | Description |
---|---|
[in] leL2capId | L2cap instance. |
[in] length | Length of L2cap SDU. See the maximum definition Maximum SDU size. |
[in] p_payload | Point to the L2cap SDU buffer. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully send a L2cap data. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_NO_RESOURCE | No Transmit buffers available for sending L2cap data. |
MBA_RES_FAIL | Fail to send L2cap data by error L2cap instance. |