Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Committer:
xinlei
Date:
Fri Mar 20 13:55:21 2015 +0000
Revision:
90:423177e8a401
Parent:
82:ca7430f50b2b
Child:
92:0acd11870c6a
Code refactoring to ease coupling

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Cumulocity 47:89ae46d5c466 1 #ifndef ANALOGMEASUREMENT_H
Cumulocity 47:89ae46d5c466 2 #define ANALOGMEASUREMENT_H
Cumulocity 47:89ae46d5c466 3
Cumulocity 47:89ae46d5c466 4 #include "SmartRest.h"
Cumulocity 47:89ae46d5c466 5 #include "SmartRestTemplate.h"
Cumulocity 47:89ae46d5c466 6 #include "mbed.h"
xinlei 73:313975bfec96 7 #include "DeviceIO.h"
xinlei 73:313975bfec96 8 #include "DeviceInfo.h"
xinlei 82:ca7430f50b2b 9 #include "DisplayInfo.h"
Cumulocity 47:89ae46d5c466 10
Cumulocity 47:89ae46d5c466 11 class AnalogMeasurement
Cumulocity 47:89ae46d5c466 12 {
Cumulocity 47:89ae46d5c466 13 public:
xinlei 90:423177e8a401 14 AnalogMeasurement(AbstractSmartRest&, SmartRestTemplate&, long&, DeviceIO&, DeviceInfo&, DisplayInfo&);
Cumulocity 47:89ae46d5c466 15
Cumulocity 47:89ae46d5c466 16 bool init();
Cumulocity 47:89ae46d5c466 17 bool run();
Cumulocity 47:89ae46d5c466 18
Cumulocity 47:89ae46d5c466 19 private:
Cumulocity 47:89ae46d5c466 20 bool _init;
Cumulocity 47:89ae46d5c466 21 long& _deviceId;
Cumulocity 47:89ae46d5c466 22 SmartRestTemplate& _tpl;
vwochnik 55:a0f7295ed6b6 23 AbstractSmartRest& _client;
xinlei 71:063c45e99578 24 float oldValues[2];
xinlei 71:063c45e99578 25 Timer sendingTimer;
xinlei 73:313975bfec96 26 DeviceIO& _io;
xinlei 73:313975bfec96 27 DeviceInfo& _deviceInfo;
xinlei 82:ca7430f50b2b 28 DisplayInfo& _displayInfo;
Cumulocity 47:89ae46d5c466 29 };
Cumulocity 47:89ae46d5c466 30
Cumulocity 47:89ae46d5c466 31 #endif