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/lceProxy.h@27:60c12f3f3430, 2017-08-04 (annotated)
- Committer:
- sgnezdov
- Date:
- Fri Aug 04 22:03:54 2017 +0000
- Revision:
- 27:60c12f3f3430
- Parent:
- 16:bef1673b199e
added documentation to all services and jobs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sgnezdov | 4:b360d4f0bf34 | 1 | #pragma once |
sgnezdov | 4:b360d4f0bf34 | 2 | |
sgnezdov | 4:b360d4f0bf34 | 3 | #include "mbed.h" |
sgnezdov | 16:bef1673b199e | 4 | #include "config.h" |
sgnezdov | 4:b360d4f0bf34 | 5 | |
sgnezdov | 27:60c12f3f3430 | 6 | /** |
sgnezdov | 27:60c12f3f3430 | 7 | LceProxy is an application service allowing to send data to LCE headend using |
sgnezdov | 27:60c12f3f3430 | 8 | LCE specific protocols. |
sgnezdov | 27:60c12f3f3430 | 9 | |
sgnezdov | 27:60c12f3f3430 | 10 | LCE is developed by Itron "Advanced Research and Development" team. |
sgnezdov | 27:60c12f3f3430 | 11 | */ |
sgnezdov | 4:b360d4f0bf34 | 12 | class LceProxy { |
sgnezdov | 4:b360d4f0bf34 | 13 | public: |
sgnezdov | 4:b360d4f0bf34 | 14 | |
sgnezdov | 16:bef1673b199e | 15 | LceProxy(NetworkInterface& ni, Config conf): _ni(ni), _conf(conf) {} |
sgnezdov | 4:b360d4f0bf34 | 16 | |
sgnezdov | 4:b360d4f0bf34 | 17 | /** |
sgnezdov | 4:b360d4f0bf34 | 18 | Sends data using Version 1 protocol. |
sgnezdov | 4:b360d4f0bf34 | 19 | */ |
sgnezdov | 7:c4123a87abe2 | 20 | void SendV1(const char* path, uint8_t *data, size_t dataLen, bool isAlarm, time_t taken); |
sgnezdov | 4:b360d4f0bf34 | 21 | |
sgnezdov | 4:b360d4f0bf34 | 22 | private: |
sgnezdov | 4:b360d4f0bf34 | 23 | |
sgnezdov | 4:b360d4f0bf34 | 24 | NetworkInterface& _ni; |
sgnezdov | 16:bef1673b199e | 25 | Config _conf; |
sgnezdov | 4:b360d4f0bf34 | 26 | }; |