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

No events after sd_ble_gattc_descriptors_discover

I'm implementing a BLE Central based on S132 with functionality for getting a descriptor list from a connected device.

To avoid having to maintain a complete discovery database of services, characteristics and descriptors I first call sd_ble_gattc_descriptors_discover() with a range of 0x0001-0xFFFF. This gives me a BLE_GATTC_EVT_DESC_DISC_RSP containing a number of descriptors. Within the event processing I call sd_ble_gattc_descriptors_discover() again with a range of "max. descriptor handle plus one"-0xFFFF. I then get no BLE_GATTC_EVT_DESC_DISC_RSP or timeout events.

I use the same approach for Service and Characteristics discovery (continuing until no more services/characteristics are returned) and it works fine. Any idea why it's not working?

Parents
  • Hi Kim,

    It sounds a little bit strange. Could you check if the second call sd_ble_gattc_descriptors_discover() actually return NRF_SUCCESS ?

    You may want to capture a sniffer trace to see if the softdevice sends descriptor discovery the second time.

Reply
  • Hi Kim,

    It sounds a little bit strange. Could you check if the second call sd_ble_gattc_descriptors_discover() actually return NRF_SUCCESS ?

    You may want to capture a sniffer trace to see if the softdevice sends descriptor discovery the second time.

Children
No Data
Related