Hi all, Please can anyone explain when the device_manager_event_handler() is triggred ? And also, what difference between on_ble_evt() and on_sys_evt() and when they are executed ? Thanks.
Hi all, Please can anyone explain when the device_manager_event_handler() is triggred ? And also, what difference between on_ble_evt() and on_sys_evt() and when they are executed ? Thanks.
Hi mohBOSS,
device_manager_event_handler() is assigned to by param.evt_handler in device_manager_init. Then evt_handler is assigned to m_application_table[0].ntf_cb and it will be called in app_evt_notify() when dm_pstorage_cb_handler() and/or dm_ble_evt_handler() executed.
Regarding on_ble_evt() and on_sys_evt(), I think I gave an answer here. Please continue on that case.
Yes I have already seen it. Thanks.
Ok, when a ble event is ready ( exple: BLE_GAP_EVT_ADV_REPORT event ), does the device_manager_event_handler() executed, or simply the on_ble_evt() is executed ( throw ble_evt_dispatch()). In fact, this is what I am looking for dear Hung.
I think that I got the answer. The device_manager_event_handler() is executed in these cases: link with the peer is established or torn down, Security procedure, link was re-established , etc
@mohBOSS: You are correct. device_manager_event_handler is called on every BLE event, however, we only interested in connection establishing, security procedure , etc.