![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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:
- 17:b79ce8109995
- Parent:
- 16:bef1673b199e
- Child:
- 19:40f5bcec121e
--- a/source/main.cpp Thu Aug 03 20:57:50 2017 +0000 +++ b/source/main.cpp Thu Aug 03 22:44:59 2017 +0000 @@ -64,6 +64,8 @@ mbed_trace_init(); // initialize the trace library tr_info("**Started**"); //-> "[INFO][main]: this is an info msg" + osThreadId_t tid = osThreadGetId(); + tr_debug("Main thread ID: 0x%X", tid); Config conf("Nucleo1"); @@ -113,8 +115,8 @@ time_t nowSecs = time(NULL); // NOTE: don't schedule run once with at 0, because 0 means never. //JobScheduler::Response<JobScheduler::JobID> res = - //scheduler.JobAdd(2, new JobScheduler::RunOnceSchedule(nowSecs), NULL); scheduler.JobAdd(1003, new JobScheduler::RunOnceSchedule(nowSecs+1), NULL); + scheduler.JobAdd(2, new JobScheduler::RunOnceSchedule(nowSecs+2), NULL); scheduler.JobAdd(1001, new JobScheduler::RunOnceSchedule(nowSecs+5), NULL); //scheduler.JobAdd(1002, new JobScheduler::RunOnceSchedule(1), NULL);