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:
27:60c12f3f3430
fixed compilation bug

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sgnezdov 13:0fdbc14c33e7 1 #pragma once
sgnezdov 13:0fdbc14c33e7 2
sgnezdov 27:60c12f3f3430 3 /**
sgnezdov 27:60c12f3f3430 4 @brief Config is an application service collecting device specific configuration
sgnezdov 27:60c12f3f3430 5 parameters.
sgnezdov 27:60c12f3f3430 6
sgnezdov 27:60c12f3f3430 7 Configuration allows for parameters change, but it is not epxected to happen
sgnezdov 27:60c12f3f3430 8 frequently.
sgnezdov 27:60c12f3f3430 9 */
sgnezdov 13:0fdbc14c33e7 10 class Config {
sgnezdov 13:0fdbc14c33e7 11 public:
sgnezdov 13:0fdbc14c33e7 12
sgnezdov 13:0fdbc14c33e7 13 Config(char* sn): _sn(sn) {}
sgnezdov 13:0fdbc14c33e7 14
sgnezdov 27:60c12f3f3430 15 /** @brief SerialNumber returns serial number of the device.
sgnezdov 27:60c12f3f3430 16
sgnezdov 27:60c12f3f3430 17 SN is used to uniquely identify the device when it sends data to HE.
sgnezdov 27:60c12f3f3430 18 */
sgnezdov 13:0fdbc14c33e7 19 const char* SerialNumber() {
sgnezdov 13:0fdbc14c33e7 20 return _sn;
sgnezdov 13:0fdbc14c33e7 21 }
sgnezdov 13:0fdbc14c33e7 22
sgnezdov 13:0fdbc14c33e7 23 private:
sgnezdov 13:0fdbc14c33e7 24
sgnezdov 13:0fdbc14c33e7 25 char* _sn;
sgnezdov 13:0fdbc14c33e7 26 };