
Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
measurement/AnalogMeasurement.h@73:313975bfec96, 2015-02-17 (annotated)
- Committer:
- xinlei
- Date:
- Tue Feb 17 16:31:30 2015 +0000
- Revision:
- 73:313975bfec96
- Parent:
- 71:063c45e99578
- Child:
- 82:ca7430f50b2b
measurements: displaying concrete information on LCD display, timing of sending operation.
Who changed what in which revision?
User | Revision | Line number | New 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 | 73:313975bfec96 | 9 | #include "DeviceBootstrap.h" |
Cumulocity | 47:89ae46d5c466 | 10 | |
Cumulocity | 47:89ae46d5c466 | 11 | class AnalogMeasurement |
Cumulocity | 47:89ae46d5c466 | 12 | { |
Cumulocity | 47:89ae46d5c466 | 13 | public: |
xinlei | 73:313975bfec96 | 14 | AnalogMeasurement(AbstractSmartRest&, SmartRestTemplate&, long&, AnalogIn&, AnalogIn&, DeviceIO&, DeviceInfo&, DeviceBootstrap&); |
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; |
Cumulocity | 47:89ae46d5c466 | 24 | AnalogIn& _analog1; |
Cumulocity | 47:89ae46d5c466 | 25 | AnalogIn& _analog2; |
xinlei | 71:063c45e99578 | 26 | float oldValues[2]; |
xinlei | 71:063c45e99578 | 27 | Timer sendingTimer; |
xinlei | 73:313975bfec96 | 28 | DeviceIO& _io; |
xinlei | 73:313975bfec96 | 29 | DeviceInfo& _deviceInfo; |
xinlei | 73:313975bfec96 | 30 | DeviceBootstrap& _bootstrap; |
Cumulocity | 47:89ae46d5c466 | 31 | }; |
Cumulocity | 47:89ae46d5c466 | 32 | |
Cumulocity | 47:89ae46d5c466 | 33 | #endif |