This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

order of calls in ble_evt_dispatch

Hi All!

In all exsamples in function "ble_evt_dispatch" we have different order to call sub functions.

Most functions to call is:

  • dm_ble_evt_handler (device manager event handler)
  • custom_service event handlerS
  • on_ble_evt (main ble event hndler)
  • ble_conn_params_on_ble_evt (connection parameters event hndler)

What is a right order of calls ?

Thanks.

Parents
  • I have learn in detail the source code and understand that if each module will use only their own events, then there are no problems. But if for example, the service, will handle device manager events, then there will be problems if service handle stay prior dm handler :)

    Ok, thanks! Question closed.

Reply
  • I have learn in detail the source code and understand that if each module will use only their own events, then there are no problems. But if for example, the service, will handle device manager events, then there will be problems if service handle stay prior dm handler :)

    Ok, thanks! Question closed.

Children
No Data
Related