Official reference client implementation for Cumulocity SmartREST on u-blox C027.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
config/ConfigSync.h
- Committer:
- xinlei
- Date:
- 2015-05-08
- Revision:
- 101:dbcd3bc51758
- Parent:
- 100:47ea098f8a47
- Child:
- 108:f1ee3e1eb126
File content as of revision 101:dbcd3bc51758:
#ifndef CONFIGSYNC_H #define CONFIGSYNC_H #include "AbstractReporter.h" #include "ConfigParser.h" class ConfigSync : public AbstractReporter { public: ConfigSync(): dict(), cp(), changed(true) {} virtual ~ConfigSync() {} virtual bool init() { resetConfiguration(); loadConfiguration(); return true; } virtual const char* name() const { return "Conf"; } virtual size_t read(char*, size_t, char*, size_t); bool updateConfiguration(const char*); protected: void resetConfiguration(); void loadConfiguration(); void saveConfiguration() const; private: Dict dict; ConfigParser cp; bool changed; }; #endif /* CONFIGSYNC_H */