
Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: config/ConfigurationSynchronization.h
- Revision:
- 98:e369fc75c000
- Parent:
- 97:9f2de96941c4
- Child:
- 99:47ea098f8a47
--- a/config/ConfigurationSynchronization.h Mon Apr 27 13:30:21 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,34 +0,0 @@ -#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 \ No newline at end of file