Hi,
I am trying to add numeric comparison function to the project nRF5_SDK_12.3.0_d7731ad\examples\ble_peripheral\app_ble_uart\pca10028\s130.
in the project, there is no support for bonding.so i added the fds and peer_manager reference to the project app_ble_hrs. but there are something wrong with my code.
i was modified ble_evt_dispatch :
static void ble_evt_dispatch(ble_evt_t * p_ble_evt)
{
ble_conn_params_on_ble_evt(p_ble_evt);
ble_nus_on_ble_evt(&m_nus, p_ble_evt);
on_ble_evt(p_ble_evt);
ble_advertising_on_ble_evt(p_ble_evt);
//bsp_btn_ble_on_ble_evt(p_ble_evt);
pm_on_ble_evt(p_ble_evt);
dbgPrint("evt id = %d\n", p_ble_evt->header.evt_id);//testonly
}
i printed the ble_evt_id in ble_evt_dispatch() as follows:
connected
evt id = 16
evt id = 18
evt id = 18
evt id = 18
evt id = 19//BLE_GAP_EVT_SEC_PARAMS_REQUEST
evt id = 18
disconnected//out of 30 seconds so the link has been disconnected
evt id = 17
by debug i found there is a error in pm_evt_handler() {case PM_EVT_ERROR_UNEXPECTED:},i don't know why this error occurs.
can i get an example of app_ble_uart with bond function?
any sugestions would be helpful.
Best Regards.