Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DataStore JobScheduler NetworkServices W5500Interface nanopb protocol
Diff: source/main.cpp
- Revision:
- 19:40f5bcec121e
- Parent:
- 17:b79ce8109995
- Child:
- 20:5b52a42b9a5d
--- a/source/main.cpp Thu Aug 03 23:51:07 2017 +0000
+++ b/source/main.cpp Fri Aug 04 00:20:33 2017 +0000
@@ -119,6 +119,9 @@
scheduler.JobAdd(2, new JobScheduler::RunOnceSchedule(nowSecs+2), NULL);
scheduler.JobAdd(1001, new JobScheduler::RunOnceSchedule(nowSecs+5), NULL);
+ scheduler.JobAdd(2, new JobScheduler::RunPeriodicSchedule(10, 3), NULL);
+ scheduler.JobAdd(1001, new JobScheduler::RunPeriodicSchedule(5, 10), NULL);
+
//scheduler.JobAdd(1002, new JobScheduler::RunOnceSchedule(1), NULL);
//scheduler.JobAdd(1001, new JobScheduler::RunOnceSchedule(nowSecs + 2), NULL);
//res = scheduler.JobAdd(1002, new JobScheduler::RunPeriodicSchedule(2, 5), NULL);