
Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
measurement/SignalQualityMeasurement.h@71:063c45e99578, 2015-02-16 (annotated)
- Committer:
- xinlei
- Date:
- Mon Feb 16 09:17:30 2015 +0000
- Revision:
- 71:063c45e99578
- Parent:
- 56:4d6e34f1589d
- Child:
- 73:313975bfec96
Various minor bug fixes
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" |
Cumulocity | 41:804f6a0bda26 | 7 | |
Cumulocity | 41:804f6a0bda26 | 8 | class SignalQualityMeasurement |
Cumulocity | 41:804f6a0bda26 | 9 | { |
Cumulocity | 41:804f6a0bda26 | 10 | public: |
vwochnik | 55:a0f7295ed6b6 | 11 | SignalQualityMeasurement(AbstractSmartRest&, SmartRestTemplate&, long&, DeviceInfo&); |
Cumulocity | 41:804f6a0bda26 | 12 | |
Cumulocity | 41:804f6a0bda26 | 13 | bool init(); |
Cumulocity | 41:804f6a0bda26 | 14 | bool run(); |
Cumulocity | 41:804f6a0bda26 | 15 | |
Cumulocity | 41:804f6a0bda26 | 16 | private: |
Cumulocity | 41:804f6a0bda26 | 17 | bool _init; |
Cumulocity | 41:804f6a0bda26 | 18 | long& _deviceId; |
Cumulocity | 41:804f6a0bda26 | 19 | SmartRestTemplate& _tpl; |
vwochnik | 55:a0f7295ed6b6 | 20 | AbstractSmartRest& _client; |
Cumulocity | 41:804f6a0bda26 | 21 | DeviceInfo& _deviceInfo; |
xinlei | 71:063c45e99578 | 22 | float oldValues[2]; |
xinlei | 71:063c45e99578 | 23 | Timer sendingTimer; |
Cumulocity | 41:804f6a0bda26 | 24 | }; |
Cumulocity | 41:804f6a0bda26 | 25 | |
Cumulocity | 41:804f6a0bda26 | 26 | #endif |