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

SDK 14.0.0 migration document error

Slight error in migration document found here:

infocenter.nordicsemi.com/index.jsp

NRF_BLE_OBSERVER(m_hrs_ble_observer, BLE_HRS_BLE_OBSERVER_PRIO, ble_hrs_on_ble_evt, m_hrs);

Should be:

NRF_SDH_BLE_OBSERVER(m_ble_observer, APP_BLE_OBSERVER_PRIO, ble_evt_handler, NULL);

NRF_SDH_BLE_OBSERVER - needs SDH_ in there. This is also wrong in the "Manually register the application as a BLE observer" example code.

Related