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-07
- Revision:
- 99:e369fc75c000
- Child:
- 100:47ea098f8a47
File content as of revision 99:e369fc75c000:
#ifndef CONFIGURATIONSYNCHRONIZATION_H #define CONFIGURATIONSYNCHRONIZATION_H #include "AbstractSmartRest.h" #include "SmartRestTemplate.h" #include "ConfigurationProperties.h" class ConfigSync { public: ConfigSync(AbstractSmartRest&, SmartRestTemplate&, long&); bool init(); bool integrate(); bool run(); bool updateConfiguration(const char*); protected: bool updateDeviceObject(); bool loadConfiguration(); bool saveConfiguration(); private: bool _init; bool _changed; SmartRestTemplate& _tpl; AbstractSmartRest& _client; long& _deviceId; DeviceConfiguration _deviceConfiguration; ConfigurationProperties _configurationProperties; }; #endif