I am trying to port my code form SDK 12.1 to SDK14. I am using NRF52832
I have gone through the example code and trying to initialize a ble event in ble_stack_init() using the following code
NRF_SDH_BLE_OBSERVER(m_rt_observer, APP_BLE_OBSERVER_PRIO,ble_r_tuning_on_ble_evt,(void*)&m_r_tuning);
1. I am getting the following error:
error: initialization from incompatible pointer type [-Werror]
NRF_SDH_BLE_OBSERVER(m_rt_observer, APP_BLE_OBSERVER_PRIO,ble_r_tuning_on_ble_evt,(void*)&m_r_tuning);
^
../../../main.c:2926:2: error: (near initialization for 'm_rt_observer.handler') [-Werror]
What is causing this?
2. Also would like to know if I can use NRF_SDH_BLE_OBSERVER to initialize two different ble events.
Thank you,
Ashish