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/TemperatureMeasurement.h@100:47ea098f8a47, 2015-05-07 (annotated)
- Committer:
- xinlei
- Date:
- Thu May 07 13:56:19 2015 +0000
- Revision:
- 100:47ea098f8a47
- Parent:
- 96:5dfdc8568e9f
prepare for v2.1rc3.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Cumulocity | 41:804f6a0bda26 | 1 | #ifndef TEMPERATUREMEASUREMENT_H |
| Cumulocity | 41:804f6a0bda26 | 2 | #define TEMPERATUREMEASUREMENT_H |
| Cumulocity | 41:804f6a0bda26 | 3 | |
| vwochnik | 55:a0f7295ed6b6 | 4 | #include "AbstractSmartRest.h" |
| Cumulocity | 41:804f6a0bda26 | 5 | #include "SmartRestTemplate.h" |
| Cumulocity | 41:804f6a0bda26 | 6 | #include "LM75B.h" |
| xinlei | 73:313975bfec96 | 7 | #include "DeviceInfo.h" |
| Cumulocity | 41:804f6a0bda26 | 8 | |
| Cumulocity | 41:804f6a0bda26 | 9 | class TemperatureMeasurement |
| Cumulocity | 41:804f6a0bda26 | 10 | { |
| Cumulocity | 41:804f6a0bda26 | 11 | public: |
| xinlei | 100:47ea098f8a47 | 12 | TemperatureMeasurement(AbstractSmartRest&, SmartRestTemplate&, DeviceInfo&); |
| xinlei | 91:423177e8a401 | 13 | |
| Cumulocity | 41:804f6a0bda26 | 14 | bool init(); |
| Cumulocity | 41:804f6a0bda26 | 15 | bool run(); |
| Cumulocity | 41:804f6a0bda26 | 16 | |
| Cumulocity | 41:804f6a0bda26 | 17 | private: |
| Cumulocity | 41:804f6a0bda26 | 18 | bool _init, _open; |
| Cumulocity | 41:804f6a0bda26 | 19 | SmartRestTemplate& _tpl; |
| vwochnik | 55:a0f7295ed6b6 | 20 | AbstractSmartRest& _client; |
| xinlei | 91:423177e8a401 | 21 | LM75B _sensor; |
| xinlei | 71:063c45e99578 | 22 | float oldValue; |
| xinlei | 94:61d44636f020 | 23 | time_t t_start; |
| xinlei | 73:313975bfec96 | 24 | DeviceInfo& _deviceInfo; |
| Cumulocity | 41:804f6a0bda26 | 25 | }; |
| Cumulocity | 41:804f6a0bda26 | 26 | |
| Cumulocity | 41:804f6a0bda26 | 27 | #endif |

Cumulocity