Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
DeviceIntegration.h
- Committer:
- xinlei
- Date:
- 2015-05-20
- Revision:
- 116:5de54f09f754
- Parent:
- 99:47ea098f8a47
File content as of revision 116:5de54f09f754:
#ifndef DEVICEINTEGRATION_H #define DEVICEINTEGRATION_H #include "SmartRest.h" #include "SmartRestTemplate.h" #include "DeviceInfo.h" class DeviceIntegration { public: DeviceIntegration(SmartRest& c, SmartRestTemplate& t, DeviceInfo& d): _init(false), _tpl(t), _client(c), _deviceInfo(d) {} bool init(); bool integrate(); protected: bool deviceExisting(); bool createDevice(); bool addGlobalIdentifier(); bool updateDevice(); private: bool _init; SmartRestTemplate& _tpl; SmartRest& _client; DeviceInfo& _deviceInfo; }; #endif