BLE_TRCBPS_SendData
C
uint16_t BLE_TRCBPS_SendData(uint16_t connHandle, uint16_t len, uint8_t *p_data);Description
Send data through the BLE Transparent Credit Based Profile Data pipe.
Parameters
| Parameter | Description |
|---|---|
| [in] connHandle | Connection handle. |
| [in] len | Length of the data to be sent. Must not exceed BLE_TRCBPS_DATA_MTU. |
| [in] p_data | Pointer to the buffer containing the data to send. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Successfully sent data. |
| MBA_RES_OOM | Internal memory allocation failure. |
| MBA_RES_INVALID_PARA | Invalid L2CAP link or data length exceeds max MTU. |
| MBA_RES_NO_RESOURCE | Insufficient credit from the remote device. |
| MBA_RES_BAD_STATE | Connection not established. |
