Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers DeviceIntegration.h Source File

DeviceIntegration.h

00001 #ifndef DEVICEINTEGRATION_H
00002 #define DEVICEINTEGRATION_H
00003 
00004 #include "SmartRest.h"
00005 #include "SmartRestTemplate.h"
00006 #include "DeviceInfo.h"
00007 
00008 class DeviceIntegration
00009 {
00010 public:
00011     DeviceIntegration(SmartRest& c, SmartRestTemplate& t, DeviceInfo& d):
00012     _init(false), _tpl(t), _client(c), _deviceInfo(d) {}
00013     bool init();
00014     bool integrate();
00015 
00016 protected:
00017     bool deviceExisting();
00018     bool createDevice();
00019     bool addGlobalIdentifier();
00020     bool updateDevice();
00021 
00022 private:
00023     bool _init;
00024     SmartRestTemplate& _tpl;
00025     SmartRest& _client;
00026     DeviceInfo& _deviceInfo;
00027 };
00028 
00029 #endif