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

sd_ble_gatts_value_set returns NRF_ERROR_NOT_FOUND

Hello,

I am using the sd_ble_getts_value_set() function two times in a row on two different characteristics. Both characteristics are part of the same service. At the moment of usage, there is an open ble connection. My function call looks like:

err_code = sd_ble_gatts_value_set(BLE_CONN_HANDLE_INVALID, m_device.chstate_handle.value_handle, &gatts_value);

On both characteristics, the function returns NRF_ERROR_NOT_FOUND. Surprisingly, it seems to work, so the characteristics I want to update, are updated with the new value.

Can you give me any hint, where to have a look on?

Regards, BTprogrammer

Related