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

Discover service always got error : BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND

Hi, I am using S120 1.0.0 and SDK 6.0.0. Learning the sample project 'ble_app_multilink_central'.

I already got a peripheral device with NUS service. The central device can connect the peripheral device, but when discovering peripheral service, I got error BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND in on_primary_srv_discovery_rsp.

What can I do to discover the NUS service and all other services ?

image description

  • You can use the database discovery module to do service discovery.

    It is described in the SDK documentation here.

    I recommend you to examine ble_app_hrs and ble_app_hrs_c first, and then modify this to ble_app_uart. I have tried to explain how the database discovery module works in ble_app_hrs_c in this question.

    It is very difficult to give you a specific answer, because you are only giving us the response. You say nothing about what your attribute table actually looks like, or what you have as arguments to sd_ble_gattc_primary_services_discover()

Related