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

nrf5_calendar example callback function?

Hello,

I am using nrf52840 and SDK 16.0.0

I am doing some work with the calendar example and got some questions.

Q1.

Inside the main function in main.c file there is nrf_cal_set_callback(calendar_updated, 4); function. How it can be called multiple times even though it is defined before the while(true) loop? How does it work?

Q2.

I am integrating ble_app_template example with this calendar example. My beacon is broadcasting advertisement packets. If I wanna update manufacturer specific data(lets say a time stamp) every 1 second, is it possible to locate advertisement update function inside this call back function(nrf_cal_set_callback())?

Thank you.

Parents Reply Children
No Data
Related