How to know service or characterisic uuid from witch notification event came from? I'm using S130 demo example.
Hi there,
ble_gattc_evt_hvx_t :: handle gives you the handle of the peer's attribute. You will have had to peform service discovery beforehand to know what this handle corresponds to, you can use:
sd_ble_gattc_primary_services_discover
sd_ble_gattc_characteristics_discover
sd_ble_gattc_descriptors_discover
to achieve that.
Carles
It seems that the characteristic value handle is not being stored, you could add that there, but essentially if you're getting 17 that means it's the right characteristic, because the "descriptor_handle" corresponds to the CCCD descriptor, which is placed right after the characteristic value.
It seems that the characteristic value handle is not being stored, you could add that there, but essentially if you're getting 17 that means it's the right characteristic, because the "descriptor_handle" corresponds to the CCCD descriptor, which is placed right after the characteristic value.