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

Procedure to perform Service Discovery with Softdevice API

Hello,

I am using pc-ble-driver to write a desktop application interfacing with Nordic connectivity dongle. There is no automatic discovery module functionality so I have to roll my own service discovery procedure. However I don't think I trusted my procedure 100% so can you please instruct me what your correct way is to start and finish a discovery procedure ?

Given that custom uuid service service discovery is a procedure, and ensure all services and characteristics as well as descriptors must be discovered. Here are the functions I used:

sd_ble_gattc_primary_services_discover()
sd_ble_gattc_relationships_discover()
sd_ble_gattc_characteristics_discover()
sd_ble_gattc_descriptors_discover()
sd_ble_gattc_attr_info_discover()
Thanks !
Related