portable version of the cumulocity demo
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
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&, SmartRestTemplate&, long&, DeviceInfo&); 00012 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 long& _deviceId; 00025 SmartRestTemplate& _tpl; 00026 SmartRest& _client; 00027 DeviceInfo& _deviceInfo; 00028 }; 00029 00030 #endif
Generated on Tue Jul 12 2022 21:10:53 by 1.7.2