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/jobSchedulesUpload.cpp
- Revision:
- 11:acaefb63fc6b
- Child:
- 13:0fdbc14c33e7
diff -r 3d5be80beac4 -r acaefb63fc6b source/jobSchedulesUpload.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/source/jobSchedulesUpload.cpp Wed Aug 02 00:22:06 2017 +0000 @@ -0,0 +1,30 @@ +#include "jobSchedulesUpload.h" + +#include "mbed-trace/mbed_trace.h" +#define TRACE_GROUP "scup" + +void JobSchedulesUpload::Run() { + tr_info("Job Schedules Upload"); + // time_t now = time(NULL); + //tr_debug("ADC created time is: %s\n", ctime(&now)); +// struct AdcMsg msg; + // convert seconds to nanoseconds +// msg.Created = now * 1e9; +// tr_debug("Current time: %x sec, %llx nanosecs", now, msg.Created); +// // swapt for byte order +// msg.Created = swap_uint64(msg.Created); // swap_uint64(msg.Created); +// msg.Mask = 0x80; // 0x80 bits: 1000 0000 +// for (int i = 0; i < 8; i++) { +// msg.Chs[i].Raw = 0; +// msg.Chs[i].V = 0; +// } +// msg.Chs[0].Raw = swap_uint32(_next++); +// msg.Chs[0].V = msg.Chs[0].Raw; + // /test can be used to send to test endpoint that responds with + // a short hardcoded string + // /uw/adc - to send adc version 1 + // _lce.SendV1("/uw/adc", (uint8_t*)&msg, sizeof(msg), false, now); +} + + +