GATTS_SendReadByTypeResponse

C

uint16_t GATTS_SendReadByTypeResponse(uint16_t connHandle, GATTS_SendReadByTypeRespParams_T *p_respParams);

Description

Sends a Read By Type response from the GATT Server.

Note

This function should be called in response to a GATTS_EVT_READ event to send the Read By Type response. If the attribute's setting is SETTING_MANUAL_READ_RSP, the application will receive a GATTS_EVT_READ event when a Read By Type request is received. The application should then call this function to send the response or an error response if the request is not allowed.

Parameters

ParameterDescription
[in] connHandleConnection handle to send the Read By Type response.
[in] p_respParamsPointer to the Read By Type Response parameters (see GATTS_SendReadByTypeRespParams_T).

Return values

Return valueDescription
MBA_RES_SUCCESSRead By Type response successfully started.
MBA_RES_FAILOperation not permitted; no prior Read By Type request received.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAInvalid parameters; the connection handle is not valid.