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

nrf_dfu_ble.c APP_ERROR_CHECK with SERVICE CHANGED but optional bonding

Hello,

In nrf_dfu_ble.c BLE_GAP_EVT_SEC_PARAMS_REQUEST pairing on Windows 10, the following code:

            err_code = sd_ble_gatts_value_get(m_conn_handle,
                                              BLE_UUID_GATT_CHARACTERISTIC_SERVICE_CHANGED,
                                              &gatts_value);
            APP_ERROR_CHECK(err_code);

on SDK 15.2, this fails with NRF_ERROR_NOT_FOUND. In my sdk_config.h, however, I have:

#define NRF_DFU_BLE_REQUIRES_BONDS 0

#define NRF_SDH_BLE_SERVICE_CHANGED 1

Have I encountered a bug?

Thanks!

James

Parents
  • Hi James

    It seems like your SoftDevice isn't configured with the SERVICE_CHANGED characteristic. But it is very hard to tell where exactly the fault is based on this snippet of code. nrf_dfu_ble.c is not an example project, so I am still wondering what project you encounter this problem in. Is it an example project made by Nordic or a project you have made yourself, in which case did you base it on one of our exapmle project, and can you test this with that unmodified example.

    Best regards,

    Simon

Reply
  • Hi James

    It seems like your SoftDevice isn't configured with the SERVICE_CHANGED characteristic. But it is very hard to tell where exactly the fault is based on this snippet of code. nrf_dfu_ble.c is not an example project, so I am still wondering what project you encounter this problem in. Is it an example project made by Nordic or a project you have made yourself, in which case did you base it on one of our exapmle project, and can you test this with that unmodified example.

    Best regards,

    Simon

Children
No Data
Related