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
Diff: config/ConfigSync.h
- Revision:
- 108:f1ee3e1eb126
- Parent:
- 101:dbcd3bc51758
- Child:
- 111:ee9ae4a5e55c
--- a/config/ConfigSync.h Wed May 13 12:12:55 2015 +0000 +++ b/config/ConfigSync.h Wed May 13 13:03:20 2015 +0000 @@ -5,14 +5,19 @@ class ConfigSync : public AbstractReporter { +private: + ConfigSync(): dict(), cp(), changed(true) {} public: - ConfigSync(): dict(), cp(), changed(true) {} virtual ~ConfigSync() {} virtual bool init() { resetConfiguration(); loadConfiguration(); return true; } + static ConfigSync& inst() { + static ConfigSync _ref; + return _ref; + } virtual const char* name() const { return "Conf"; } virtual size_t read(char*, size_t, char*, size_t); bool updateConfiguration(const char*);