This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Identify characteristic when processing BLE_GATTC_EVT_CHAR_VAL_BY_UUID_READ_RSP event

Hi,

I'm using S130 with SDK 9.0.0 and as central, I'd like to read values for more than one characteristic on a peripheral. I do so in BLE_GATTC_EVT_CHAR_DISC_RSP by firing multiple sd_ble_gattc_char_value_by_uuid_read calls, one for each p_ble_evt->evt.gattc_evt.params.char_disc_rsp.chars[x].uuid.uuid that matches a list of characteristic UUID I'm interested in. I am then processing the BLE_GATTC_EVT_CHAR_VAL_BY_UUID_READ_RSP event to get to the characteristic values using the p_ble_evt->evt.gattc_evt.params.char_val_by_uuid_read_rsp call. The issue I'm facing is that I don't know which characteristic each value belongs to. Inspecting the event structure at runtime when the BLE_GATTC_EVT_CHAR_VAL_BY_UUID_READ_RSP event is in, didn't enlighten me either. Please help.

florin

Parents Reply Children
Related