BLE_L2CAP_CbAddCredits

C

uint16_t BLE_L2CAP_CbAddCredits(uint8_t leL2capId, uint16_t credits);

Description

Sends L2CAP flow control credits to the peer device.

Note

Credits should be returned to the peer device after receiving data to ensure the peer can continue sending data.

Parameters

ParameterDescription
[in] leL2capIdThe L2CAP instance identifier.
[in] creditsThe number of credits to send.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully sent credits to the peer device.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_NO_RESOURCENo transmit buffers available for sending L2cap data.
MBA_RES_FAILFailed to send credits due to an L2CAP instance error.