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

Multi __WFE or sd_app_evt_wait functions in the application

Hi Team,

I want to develop an application based on Mesh5.0, but I also want to use functions that in nRF SDK. I find the sd_app_evt_wait() in the main function. But in NRF SDK, I also find the __WFE.

I am confused about that to use nRF functions in the Mesh application. 

In summary, my questions:

1. Is it a must that uses __WFE function when transferring it in the Mesh application?

2. Is it ok to use multi times of __WFE function?

Best,

Gaosheng

  • Hi,

    Examples in nRF5 SDK use __WFE() when not having a SoftDevice, or if the SoftDevice is not enabled. For hte mesh examples, the SoftDevice is always included in the project, and always enabled. You may want to include the approach from the nRF5 SDK if you are in a situation where the SoftDevice will be disabled. Note however that for Bluetooth mesh it is almost certainly the case that you want the SoftDevice enabled virtually all of the time.

    There is a page in the documentation for nRF5 SDK for Mesh for Integrating Bluetooth mesh into nRF5 SDK examples, in addition to dedicated examples for this kind of integration. They cover what's needed for combining nRF5 SDK for Mesh with nRF5 SDK.

    Regards,
    Terje

Related