Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
measurement/SignalQualityMeasurement.h@82:ca7430f50b2b, 2015-03-06 (annotated)
- Committer:
- xinlei
- Date:
- Fri Mar 06 10:38:03 2015 +0000
- Revision:
- 82:ca7430f50b2b
- Parent:
- 77:f6717e4eccc4
- Child:
- 93:0acd11870c6a
Threshold values tuning for avoiding sending unnecessary sensor readings.
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 | 82:ca7430f50b2b | 8 | #include "DisplayInfo.h" |
| Cumulocity | 41:804f6a0bda26 | 9 | |
| Cumulocity | 41:804f6a0bda26 | 10 | class SignalQualityMeasurement |
| Cumulocity | 41:804f6a0bda26 | 11 | { |
| Cumulocity | 41:804f6a0bda26 | 12 | public: |
| xinlei | 82:ca7430f50b2b | 13 | SignalQualityMeasurement(AbstractSmartRest&, SmartRestTemplate&, long&, DeviceInfo&, DeviceIO&, DisplayInfo&); |
| 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 | 77:f6717e4eccc4 | 24 | int oldValues[2]; |
| xinlei | 71:063c45e99578 | 25 | Timer sendingTimer; |
| xinlei | 73:313975bfec96 | 26 | DeviceIO& _io; |
| xinlei | 82:ca7430f50b2b | 27 | DisplayInfo& _displayInfo; |
| Cumulocity | 41:804f6a0bda26 | 28 | }; |
| Cumulocity | 41:804f6a0bda26 | 29 | |
| Cumulocity | 41:804f6a0bda26 | 30 | #endif |

Cumulocity