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.

Committer:
sgnezdov
Date:
Fri Aug 11 19:07:20 2017 +0000
Revision:
28:7214f7806526
Parent:
17:b79ce8109995
fixed compilation bug

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sgnezdov 16:bef1673b199e 1 #include "jobTestUpload.h"
sgnezdov 16:bef1673b199e 2
sgnezdov 16:bef1673b199e 3 #include "mbed-trace/mbed_trace.h"
sgnezdov 16:bef1673b199e 4 #define TRACE_GROUP "jtp"
sgnezdov 16:bef1673b199e 5 //#include "us_ticker_api.h"
sgnezdov 16:bef1673b199e 6
sgnezdov 16:bef1673b199e 7 void JobTestUpload::Run() {
sgnezdov 16:bef1673b199e 8 tr_info("Job Test Upload");
sgnezdov 16:bef1673b199e 9 time_t now = time(NULL);
sgnezdov 17:b79ce8109995 10 //uint8_t msg[] = (uint8_t*)"*1234567*";
sgnezdov 17:b79ce8109995 11 uint8_t msg[] = { 0x0a, 0x07, 0x4e, 0x75, 0x63, 0x6c, 0x65, 0x6f, 0x31 };
sgnezdov 17:b79ce8109995 12 const char url[] = "/uw/joblist"; // "/test";
sgnezdov 17:b79ce8109995 13 _lce.SendV1(url, msg, 9, false, now);
sgnezdov 16:bef1673b199e 14 }