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/config.h

Committer:
sgnezdov
Date:
2017-08-11
Revision:
28:7214f7806526
Parent:
27:60c12f3f3430

File content as of revision 28:7214f7806526:

#pragma once

/**
@brief Config is an application service collecting device specific configuration
parameters.

Configuration allows for parameters change, but it is not epxected to happen
frequently.
*/
class Config {
    public:
    
    Config(char* sn): _sn(sn) {}
    
    /** @brief SerialNumber returns serial number of the device.
    
    SN is used to uniquely identify the device when it sends data to HE.
    */
    const char* SerialNumber() {
        return _sn;
    }
            
    private:
    
    char* _sn;
};