Official reference client implementation for Cumulocity SmartREST on u-blox C027.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: measurement/Location.h
- Revision:
- 124:311fa85af2b3
- Parent:
- 101:dbcd3bc51758
- Child:
- 137:a52821cdb108
--- a/measurement/Location.h Wed May 27 09:22:24 2015 +0000 +++ b/measurement/Location.h Fri May 29 12:05:01 2015 +0000 @@ -8,11 +8,11 @@ class Location: public AbstractReporter { public: - Location(): gpsTracker() { + Location(): gpsTracker(), timer() { oldValues[0] = 0; oldValues[1] = 0; oldValues[2] = 0; - t_start = time(NULL); + timer.start(); } virtual ~Location() {} virtual bool init() { return true; } @@ -21,7 +21,7 @@ private: GPSTracker gpsTracker; float oldValues[3]; - time_t t_start; + Timer timer; }; #endif /* LOCATION_H */ \ No newline at end of file