Handle a Read Request

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
TW_Chia
Level 3
Level 3
First like received 25 replies posted 10 sign-ins

Good day,

I am using CYBLE416045-02 to build a BLE based project.

I need to respond to a read request and have the following example code.

However,  it seems CYBLE_GATTS_CHAR_VAL_READ_REQ_T is not recognized when it added to my project.

Please advice how one can go about doing it.

Thank you.

********

case CYBLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ:
DBG_PRINTF("CYBLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ: handle: %x \r\n",
((CYBLE_GATTS_CHAR_VAL_READ_REQ_T *)eventParam)->attrHandle);
break;

******

0 Likes
1 Solution
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,

CYBLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ and CYBLE_GATTS_CHAR_VAL_READ_REQ_T are PSoC4 BLE device events and structures. For PSoC6 BLE Device, you have to use the CY_BLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ and event parameter 'cy_stc_ble_gatts_char_val_read_req_t'. Please refer to the PSoC6 BLE Middleware Library for more information on list of PSoC6 BLE APIs, structures and events.

Thanks,

P Yugandhar.

View solution in original post

0 Likes
1 Reply
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello,

CYBLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ and CYBLE_GATTS_CHAR_VAL_READ_REQ_T are PSoC4 BLE device events and structures. For PSoC6 BLE Device, you have to use the CY_BLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ and event parameter 'cy_stc_ble_gatts_char_val_read_req_t'. Please refer to the PSoC6 BLE Middleware Library for more information on list of PSoC6 BLE APIs, structures and events.

Thanks,

P Yugandhar.

0 Likes