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

    What example project do you encounter this issue in? The NRF_ERROR_NOT_FOUND says that Security parameters have not been set, and seeing as the BLE_GAP_EVT_SEC_PARAMS_REQUEST requests security parameters, you will have to enable some kind of security parameters. What happens if you set NRF_DFU_BLE_REQUIRES_BONDS 0?

    Best regards,

    Simon

Reply
  • Hi James

    What example project do you encounter this issue in? The NRF_ERROR_NOT_FOUND says that Security parameters have not been set, and seeing as the BLE_GAP_EVT_SEC_PARAMS_REQUEST requests security parameters, you will have to enable some kind of security parameters. What happens if you set NRF_DFU_BLE_REQUIRES_BONDS 0?

    Best regards,

    Simon

Children
Related