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

Using sd_ble_gattc_characteristics_discover

Hi,

I'm trying to use sd_ble_gattc_characteristics_discover to figure out which characteristics are in a service.

On the whole it seems pretty obvious (keep calling sd_ble_gattc_characteristics_discover and handling the BLE_GATTC_EVT_CHAR_DISC_RSP event for each characteristic within the range reported for the service).

However for the last service there's an issue - the range starts at 11, which is fine - but ends at 65535.

So how do I know when I should stop calling sd_ble_gattc_characteristics_discover? Is there an example? I don't seem to be able to find anything using it in the SDK

thanks!

Related