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

App Timer Not Working in ble_beacon example SDK 16.

Hi, I am integrating app timer with ble_example to do advertisement at particular interval. When i create and use app timer and if timer fired there is a NRF_LOG_INFO which prints at exact interval but if i add advertisng_init and advertising_start function in timer evt handler function, it is giving fatal error with system reset. This happens only i advertise using timer otherwise timer is working fine. As far i checked in nordic devzone people are telling that app_timer is used by soft device so it may not be available for other purpose. is it true that i cannot use app_timer when soft device is used? 

But in contrast with the above statement i used the same app_timer in ble_app_uart example there it was working fine. How can ble_app_uart works with app_timer not the ble_beacon example?

Is there any other way to use timers to advertise periodically? if so give me some sample code snippet.

Thanks in advance.

Related