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
Parameter | Description |
---|---|
[in] leL2capId | The L2CAP instance identifier. |
[in] credits | The number of credits to send. |
Return values
Return value | Description |
---|---|
MBA_RES_FAIL | Failed to send credits due to an L2CAP instance error. |