Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

GATT Queue can not discover all primary services (NRF_BLE_GQ_REQ_SRV_DISCOVERY)

I would like to use the GATT queue to discover ALL primary services. When using the SoftDevice calls directly, one would use sd_ble_gattc_primary_services_discover(conn_hdl, 1, NULL) - passing NULL as the UUID will return all primary services.

With the GATT queue and NRF_BLE_GQ_REQ_SRV_DISCOVERY this is not possible - nrf_ble_gq_gattc_srv_discovery_t has a ble_uuid_t srvc_uuid which we can not set to NULL. Later in nrf_ble_gq.c this uuid is passed to sd_ble_gattc_primary_services_discover() so there is no way to get all primary services.

Anything I'm missing? If not please fix in the next SDK version... Thank you.

Parents Reply Children
No Data
Related