I will ask one of the developers to respond.
1 of 1 people found this helpful
hello_client_app_fine_timer and hello_client_app_timer are free running timers. so if your app needs to do something periodically or needs to check when some condition expires, those can be used.
You can register a callback when Scan or Connect event expires. This is the way how hello client is doing that.
blecen_usertimerCb = hello_client_timer_callback;
The type of the event is passed to the callback as a parameter. If you start HIGH_SCAN the callback will be called in 30 seconds. If you start LOW_SCAN the callback will be called in 300 seconds. This can be changed by changing
blecen_cen_cfg.high_scan_duration = 30; // seconds
/blecen_cen_cfg.low_scan_duration = 300; // seconds
Great, that helps!
I tried to find out whether calling bleprofile_regTimerCb() twice shadows the previous callbacks. I found out that it does. I assume from that that I don't have to worry about implementing anything in blecen_FineTimeout() and blecen_Timeout() apart from maybe calling bleprofile_pollPowersave() in my code.