BLE_TRSPS_SendVendorCommand
C
uint16_t BLE_TRSPS_SendVendorCommand(uint16_t connHandle, uint8_t commandID, uint8_t commandLength, uint8_t *p_commandPayload);Description
Sends a vendor-specific command over BLE.
Parameters
| Parameter | Description |
|---|---|
| [in] connHandle | Connection handle associated with this connection. |
| [in] commandID | The identifier of the vendor-specific command. |
| [in] commandLength | The length of the command payload. |
| [in] p_commandPayload | Pointer to the command payload data. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Command successfully sent. |
| MBA_RES_FAIL | Failed due to an invalid connection handle. |
| MBA_RES_OOM | Internal memory allocation failure. |
| MBA_RES_INVALID_PARA | Invalid parameters; incorrect commandID, commandLength, or CCCD of TCP not enabled. |
