BLE_TRSPC_SendVendorCommand

C

uint16_t BLE_TRSPC_SendVendorCommand(uint16_t connHandle, uint8_t commandID, uint8_t commandLength, uint8_t *p_commandPayload);

Description

Sends a vendor-specific command over the BLE connection.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] commandIDThe identifier for 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_SUCCESSThe command was successfully sent.
MBA_RES_FAILThe connection is invalid or the CCCD of TCP is not enabled.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAThe commandID or commandLength is invalid.