research application on sending data to headend
Dependencies: DataStore JobScheduler NetworkServices W5500Interface nanopb protocol
See "main.cpp" documentation on "API Documentation" tab for details about application.
Diff: source/main.cpp
- Revision:
- 19:40f5bcec121e
- Parent:
- 17:b79ce8109995
- Child:
- 20:5b52a42b9a5d
diff -r 133a51becbe1 -r 40f5bcec121e source/main.cpp --- 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);