This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What is the difference between sd_ble_gattc_primary_services_discover and ble_db_discovery_start

Hi community

In order to discovery the server, I have read some examples and I got some questions regarding the use of the following methods:

 sd_ble_gattc_primary_services_discover();
 ble_db_discovery_start();

I know the the primary services discover it will return me the services of the server, but the db discovery? Which database is it?

I had programmed a central app, but I used to discover first the db and the services, but this caused problems, now the app just discovers the primary services and the app runs well.

Can the app handle the two discoveries?

Parents
  • Hi David,

    ble_db_xxx functions relate to \components\ble\ble_db_discovery module from nRF5 SDK, see more information on the Infocenter here. It basically builds data base of GATT Server handles for you, some people like to use this module because it works well for them, some people prefer to run discovery algorithms by themselves by using sd_ble_gattc_xx functions.

    Cheers Jan

Reply
  • Hi David,

    ble_db_xxx functions relate to \components\ble\ble_db_discovery module from nRF5 SDK, see more information on the Infocenter here. It basically builds data base of GATT Server handles for you, some people like to use this module because it works well for them, some people prefer to run discovery algorithms by themselves by using sd_ble_gattc_xx functions.

    Cheers Jan

Children
No Data
Related