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

gatt service inquiry

Hi,

In addition to listening the advertiser's and beacon data we also need to offer the master application - which is connected to BLE-module via UART - the possibility to connect to peripheral and get information of available GATT-services. For this we need to be able to inquire service uuids from the connected peripheral.

I've been browsing through the examples but not been able to find out the solution for this. There are samples for listening the defined services, but not one for getting the information of all the available services.

Could anyone please guide me to the correct example, or give me some step-by-step information for building such an application.

Devkit used is nRF52840-DK, SDK revision is nRF5_SDK_16.0.0_98a08e2

Regards, Jukka

Parents
  • Hi Jukka

    Thank you for the explanation. It seems like you look for something like the sd_ble_gattc_primary_services_discover() function instead of the discovery module. I'm sorry I didn't realize that earlier, but this function didn't come to mind initially. The sd_ble_gattc_primary_services_discover() function should be able to find all 128-bit UUIDs and support the ones in the table provided to ble_vs_uuids_assign. You should not have to know the list of service UUIDs in order to discover them using this function.

    Best regards,

    Simon

Reply
  • Hi Jukka

    Thank you for the explanation. It seems like you look for something like the sd_ble_gattc_primary_services_discover() function instead of the discovery module. I'm sorry I didn't realize that earlier, but this function didn't come to mind initially. The sd_ble_gattc_primary_services_discover() function should be able to find all 128-bit UUIDs and support the ones in the table provided to ble_vs_uuids_assign. You should not have to know the list of service UUIDs in order to discover them using this function.

    Best regards,

    Simon

Children
No Data
Related