
Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
measurement/AccelerationMeasurement.h@98:e369fc75c000, 2015-05-07 (annotated)
- Committer:
- xinlei
- Date:
- Thu May 07 09:57:55 2015 +0000
- Revision:
- 98:e369fc75c000
- Parent:
- 95:5dfdc8568e9f
- Child:
- 99:47ea098f8a47
prepare for v2.1rc3.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Cumulocity | 41:804f6a0bda26 | 1 | #ifndef ACCELERATIONMEASUREMENT_H |
Cumulocity | 41:804f6a0bda26 | 2 | #define ACCELERATIONMEASUREMENT_H |
Cumulocity | 41:804f6a0bda26 | 3 | |
vwochnik | 55:a0f7295ed6b6 | 4 | #include "AbstractSmartRest.h" |
Cumulocity | 41:804f6a0bda26 | 5 | #include "SmartRestTemplate.h" |
Cumulocity | 41:804f6a0bda26 | 6 | #include "MMA7660.h" |
xinlei | 73:313975bfec96 | 7 | #include "DeviceInfo.h" |
Cumulocity | 41:804f6a0bda26 | 8 | |
Cumulocity | 41:804f6a0bda26 | 9 | class AccelerationMeasurement |
Cumulocity | 41:804f6a0bda26 | 10 | { |
Cumulocity | 41:804f6a0bda26 | 11 | public: |
xinlei | 95:5dfdc8568e9f | 12 | AccelerationMeasurement(AbstractSmartRest&, SmartRestTemplate&, long&, DeviceInfo&); |
Cumulocity | 41:804f6a0bda26 | 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, _test; |
Cumulocity | 41:804f6a0bda26 | 19 | SmartRestTemplate& _tpl; |
vwochnik | 55:a0f7295ed6b6 | 20 | AbstractSmartRest& _client; |
xinlei | 90:423177e8a401 | 21 | MMA7660 _sensor; |
xinlei | 71:063c45e99578 | 22 | float oldValues[3]; |
xinlei | 93: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 |