BLE_TRSPC_SendVendorCommand

C

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

Description

Send vendor command.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] commandIDCommand id of the vendor command.
[in] commandLengthLength of payload in vendor commnad.
[in] p_commandPayloadPointer to the payload of vendor command.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully issue a send vendor command.
MBA_RES_FAILInvalid connection or the CCCD of TCP is not enabled.
MBA_RES_OOMNo available memory.
MBA_RES_INVALID_PARAError commandID usage or commandLength invalid.