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

Device Manager Event Handler

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.

Parents
  • 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.

Reply
  • 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.

Children
Related