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/jobTestUpload.cpp
- Revision:
- 17:b79ce8109995
- Parent:
- 16:bef1673b199e
--- a/source/jobTestUpload.cpp Thu Aug 03 20:57:50 2017 +0000 +++ b/source/jobTestUpload.cpp Thu Aug 03 22:44:59 2017 +0000 @@ -7,6 +7,8 @@ void JobTestUpload::Run() { tr_info("Job Test Upload"); time_t now = time(NULL); - char msg[] = "*1234567*"; - _lce.SendV1("/test", (uint8_t*)msg, strlen(msg), false, now); + //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); }