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/ConfigurationSynchronization.h
- Committer:
- xinlei
- Date:
- 2015-04-27
- Revision:
- 98:9f2de96941c4
- Parent:
- 96:5dfdc8568e9f
File content as of revision 98:9f2de96941c4:
#ifndef CONFIGURATIONSYNCHRONIZATION_H #define CONFIGURATIONSYNCHRONIZATION_H #include "AbstractSmartRest.h" #include "SmartRestTemplate.h" #include "ConfigurationProperties.h" class ConfigurationSynchronization { public: ConfigurationSynchronization(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