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
Parameter | Description |
---|---|
[in] connHandle | Connection handle to send the Read By Type response. |
[in] p_respParams | Pointer to the Read By Type Response parameters (see GATTS_SendReadByTypeRespParams_T). |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Read By Type response successfully started. |
MBA_RES_FAIL | Operation not permitted; no prior Read By Type request received. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | Invalid parameters; the connection handle is not valid. |