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.

source/jobTestUpload.cpp

Committer:
sgnezdov
Date:
2017-08-03
Revision:
17:b79ce8109995
Parent:
16:bef1673b199e

File content as of revision 17:b79ce8109995:

#include "jobTestUpload.h"

#include "mbed-trace/mbed_trace.h"
#define TRACE_GROUP  "jtp"
//#include "us_ticker_api.h"

void JobTestUpload::Run() {
    tr_info("Job Test Upload");
    time_t now = time(NULL);
    //uint8_t msg[] = (uint8_t*)"*1234567*";
    uint8_t msg[] = { 0x0a, 0x07, 0x4e, 0x75, 0x63, 0x6c, 0x65, 0x6f, 0x31 };
    const char  url[] = "/uw/joblist"; // "/test";
    _lce.SendV1(url, msg, 9, false, now);
}