GATTC_ReadUsingUUID
C
uint16_t GATTC_ReadUsingUUID(uint16_t connHandle, GATTC_ReadByTypeParams_T *p_readParams);
Description
GATT Client initiates read of characteristic value for the specified characteristic UUID within the given handle range when this API is called.
Events generated
GATTC_EVT_ERROR_RESP Generated when fail to read.
GATTC_EVT_READ_USING_UUID_RESP Generated when read successfully.
ATT_EVT_TIMEOUT Generated when server does not respond the request.
Parameters
Parameter | Description |
---|---|
[in] connHandle | Handle of the connection to read characteristic value for. |
[in] p_readParams | Pointer to structure containing the UUID of the Characteristic and handle range to be queried. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully initiates read using UUID procedure. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | Invalid parameters. Connection handle is not valid. |
MBA_RES_BUSY | GATT Client is busy. Another request is ongoing. |