BLE_TRCBPS_SendVendorCommand
C
uint16_t BLE_TRCBPS_SendVendorCommand(uint16_t connHandle, uint8_t cmdId, uint16_t len, uint8_t *p_payload);
Description
Send a vendor-specific command through the BLE TRCBP Control pipe.
Parameters
Parameter | Description |
---|---|
[in] connHandle | Connection handle. |
[in] cmdId | Vendor command Opcode (see TRCBPS vendor opcodes). |
[in] len | Length of the vendor command. |
[in] p_payload | Pointer to the command payload. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully sent the vendor command. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | Invalid L2CAP link or data length exceeds max MTU. |
MBA_RES_BAD_STATE | Connection not established. |