View Single Post
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#3
Originally Posted by nieldk View Post
hmm good job!

Did you try this with fcron?
(https://openrepos.net/content/nieldk/fcron)
fcron would be needed to be patched to use DSME/iphb socket for the heartbeat. Very easy modification.

--- edit ---

Yes, really all that's needed should be something like

....
sockfd = iphb_get_fd(g_iphbdHandler);
int delta = seconds_to_wait / 4;
r = iphb_wait(g_iphbdHandler, seconds_to_wait - delta, seconds_to_wait + delta, 0);
....

or something similar to the main_loop(), and of course some bits of initialization.

Last edited by juiceme; 2014-07-08 at 20:54.
 

The Following User Says Thank You to juiceme For This Useful Post: