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

bugfix request: fix error when use eddystone configuration service with another GATT service

I get an error if I use the eddystone configuration service together with another GATT service like e.g. buttonless dfu. the following change in components/ble/ble_services/eddystone/nrf_ble_es.c will fix this error:

 void nrf_ble_es_on_ble_evt(ble_evt_t const * p_ble_evt, void * p_context)
 {
     ret_code_t err_code; 
 
     es_adv_on_ble_evt(p_ble_evt);
     err_code = nrf_ble_escs_on_ble_evt(&m_ble_ecs, p_ble_evt);
+    if (err_code == NRF_ERROR_NOT_FOUND)
+    {
+        // if another service than eddystone configuration is called, NRF_ERROR_NOT_FOUND is expected
+        return;
+    }
     APP_ERROR_CHECK(err_code);
     on_ble_evt(p_ble_evt);
     es_flash_on_ble_evt(p_ble_evt);
 }
Related