44 void create_task(
void (*task_func)(),
unsigned long interval_sec);
57 void begin(
long int timer_sync_interval_ms = 600000);
68 unsigned long interval;
69 time_t last_execution_time;
72 static const int MAX_TASKS = 10;
73 TaskInfo tasks_[MAX_TASKS];
A scheduler for running tasks on the controller, minimum time between events is 1 second based off th...
void begin(long int timer_sync_interval_ms=600000)
initialise timer
void run()
This needs to be run in the loop function continuously. Best practice is to have a loop function that...
void create_task(void(*task_func)(), unsigned long interval_sec)
Create a task.
Timer that syncs with NTP server.