#include <TmLongSchedule.h>
Public Member Functions | |
| TmLongSchedule (uint32_t milliSchedule, TimerFn callee, bool oneTime=false) | |
| TmLongSchedule (uint32_t milliSchedule, Executable *callee, bool oneTime=false) | |
| void | exec () override |
| uint32_t | timeOfNextCheck () override |
| Public Member Functions inherited from BaseEvent | |
| BaseEvent (TaskManager *taskMgrToUse=&taskManager) | |
| void | setTriggered (bool t) |
| bool | isTriggered () const |
| bool | isComplete () const |
| void | setCompleted (bool complete) |
| void | markTriggeredAndNotify () |
| Public Member Functions inherited from Executable | |
| virtual | ~Executable ()=default |
A task manager task that can be scheduled safely in hours and days. If you need more than this, you'll probably need to write your own event based on a real time clock's time of day. You could use this event as the starting point.
| TmLongSchedule::TmLongSchedule | ( | uint32_t | milliSchedule, |
| TimerFn | callee, | ||
| bool | oneTime = false ) |
Create a schedule that will call back a TimerFn functional callback.
| milliSchedule | the schedule to call back on |
| callee | the functional callback |
| TmLongSchedule::TmLongSchedule | ( | uint32_t | milliSchedule, |
| Executable * | callee, | ||
| bool | oneTime = false ) |
Create schedule that will call the exec() method on an Executable
| milliSchedule | the schedule to call back on |
| callee | the object extending from Executable |
|
overridevirtual |
Called when the schedule is reached
Implements Executable.
|
overridevirtual |
This method must be implemented by all event handlers. It will be called when the event is first registered with task manager, then it will be called in whatever number of micros you return from the call. For polling events you'd set this to whatever frequency you needed to poll on. For interrupt / threaded situations, it may be set to a very large value, as you would not need to poll.
Implements BaseEvent.