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

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] commandIDThe identifier of the vendor-specific command.
[in] commandLengthThe length of the command payload.
[in] p_commandPayloadPointer to the command payload data.

Return values

Return valueDescription
MBA_RES_SUCCESSCommand successfully sent.
MBA_RES_FAILFailed due to an invalid connection handle.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAInvalid parameters; incorrect commandID, commandLength, or CCCD of TCP not enabled.