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

ParameterDescription
[in] leL2capIdL2cap instance.
[in] lengthLength of L2cap SDU. See the maximum definition Maximum SDU size.
[in] p_payloadPoint to the L2cap SDU buffer.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully send a L2cap data.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_NO_RESOURCENo Transmit buffers available for sending L2cap data.
MBA_RES_FAILFail to send L2cap data by error L2cap instance.