
Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
measurement/SignalQualityMeasurement.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:
- 77:f6717e4eccc4
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 | 41:804f6a0bda26 | 1 | #ifndef SIGNALQUALITYMEASUREMENT_H |
Cumulocity | 41:804f6a0bda26 | 2 | #define SIGNALQUALITYMEASUREMENT_H |
Cumulocity | 41:804f6a0bda26 | 3 | |
vwochnik | 55:a0f7295ed6b6 | 4 | #include "AbstractSmartRest.h" |
Cumulocity | 41:804f6a0bda26 | 5 | #include "SmartRestTemplate.h" |
Cumulocity | 41:804f6a0bda26 | 6 | #include "DeviceInfo.h" |
xinlei | 73:313975bfec96 | 7 | #include "DeviceIO.h" |
xinlei | 73:313975bfec96 | 8 | #include "DeviceBootstrap.h" |
Cumulocity | 41:804f6a0bda26 | 9 | |
Cumulocity | 41:804f6a0bda26 | 10 | class SignalQualityMeasurement |
Cumulocity | 41:804f6a0bda26 | 11 | { |
Cumulocity | 41:804f6a0bda26 | 12 | public: |
xinlei | 73:313975bfec96 | 13 | SignalQualityMeasurement(AbstractSmartRest&, SmartRestTemplate&, long&, DeviceInfo&, DeviceIO&, DeviceBootstrap&); |
Cumulocity | 41:804f6a0bda26 | 14 | |
Cumulocity | 41:804f6a0bda26 | 15 | bool init(); |
Cumulocity | 41:804f6a0bda26 | 16 | bool run(); |
Cumulocity | 41:804f6a0bda26 | 17 | |
Cumulocity | 41:804f6a0bda26 | 18 | private: |
Cumulocity | 41:804f6a0bda26 | 19 | bool _init; |
Cumulocity | 41:804f6a0bda26 | 20 | long& _deviceId; |
Cumulocity | 41:804f6a0bda26 | 21 | SmartRestTemplate& _tpl; |
vwochnik | 55:a0f7295ed6b6 | 22 | AbstractSmartRest& _client; |
Cumulocity | 41:804f6a0bda26 | 23 | DeviceInfo& _deviceInfo; |
xinlei | 71:063c45e99578 | 24 | float oldValues[2]; |
xinlei | 71:063c45e99578 | 25 | Timer sendingTimer; |
xinlei | 73:313975bfec96 | 26 | DeviceIO& _io; |
xinlei | 73:313975bfec96 | 27 | DeviceBootstrap& _bootstrap; |
Cumulocity | 41:804f6a0bda26 | 28 | }; |
Cumulocity | 41:804f6a0bda26 | 29 | |
Cumulocity | 41:804f6a0bda26 | 30 | #endif |