
Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
measurement/TemperatureMeasurement.h@56:4d6e34f1589d, 2014-10-23 (annotated)
- Committer:
- vwochnik
- Date:
- Thu Oct 23 12:59:37 2014 +0000
- Revision:
- 56:4d6e34f1589d
- Parent:
- TemperatureMeasurement.h@55:a0f7295ed6b6
- Child:
- 71:063c45e99578
cleanup
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" |
Cumulocity | 41:804f6a0bda26 | 7 | |
Cumulocity | 41:804f6a0bda26 | 8 | class TemperatureMeasurement |
Cumulocity | 41:804f6a0bda26 | 9 | { |
Cumulocity | 41:804f6a0bda26 | 10 | public: |
vwochnik | 55:a0f7295ed6b6 | 11 | TemperatureMeasurement(AbstractSmartRest&, SmartRestTemplate&, long&, LM75B&); |
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, _open; |
Cumulocity | 41:804f6a0bda26 | 18 | long& _deviceId; |
Cumulocity | 41:804f6a0bda26 | 19 | SmartRestTemplate& _tpl; |
vwochnik | 55:a0f7295ed6b6 | 20 | AbstractSmartRest& _client; |
Cumulocity | 41:804f6a0bda26 | 21 | LM75B& _sensor; |
Cumulocity | 41:804f6a0bda26 | 22 | }; |
Cumulocity | 41:804f6a0bda26 | 23 | |
Cumulocity | 41:804f6a0bda26 | 24 | #endif |