Skip to content

Commit c698f04

Browse files
authored
Update README.md
1 parent cb19de0 commit c698f04

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,18 @@ Then in the loop method you need to call:
7979
}
8080
```
8181

82+
To schedule tasks that have an interval of longer than an hour, use the long schedule support as follows (more details in the longSchedule example):
83+
84+
First create a long schedule either globally or using the new operator:
85+
86+
TmLongSchedule hourAndHalfSchedule(makeHourSchedule(1, 30), &myTaskExec);
87+
88+
Then add it to task manager during setup or as needed:
89+
90+
taskManager.registerEvent(&hourAndHalfSchedule);
91+
92+
After this the callback (or event object) registered in the TmLongSchedule will be called whenever scheduled.
93+
8294
From 1.2.1 onwards reentrant locking has been added, if you have a shared resource that you need to lock around, you can do this in tasks. See the reentrantLocking example for more details.
8395

8496
As of V1.1 - Arduino Only - If you want to use the legacy interrupt marshalling support instead of building an event you must additionally include the following:

0 commit comments

Comments
 (0)