Closed afagard closed 4 years ago
Love the lib, even though it is a bit hard for me to follow some of the examples (so many callbacks).
In any case, I was wondering if there was a way to pass an argument with a task:
e.g.
Task tUpdateRtc(1UL * 60UL * 1000UL, TASK_FOREVER, &updateRtc(true), &hpr); // every 1 minute
No easy way to do it with Dynamic Tasks calling static callback methods. You can use Local Task Storage pointer for this. Wiki: here Example: here
Love the lib, even though it is a bit hard for me to follow some of the examples (so many callbacks).
In any case, I was wondering if there was a way to pass an argument with a task:
e.g.
Task tUpdateRtc(1UL * 60UL * 1000UL, TASK_FOREVER, &updateRtc(true), &hpr); // every 1 minute