Cumulocity Official / Mbed 2 deprecated MbedSmartRestMain Featured

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Vincent Wochnik

Revision:
124:311fa85af2b3
Parent:
101:dbcd3bc51758
Child:
137:a52821cdb108
diff -r 3e4a1ed4bad5 -r 311fa85af2b3 measurement/Acceleration.h
--- a/measurement/Acceleration.h	Wed May 27 09:22:24 2015 +0000
+++ b/measurement/Acceleration.h	Fri May 29 12:05:01 2015 +0000
@@ -8,11 +8,11 @@
 class Acceleration: public AbstractReporter
 {
 public:
-        Acceleration(): deviceReady(false), sensor(SDA, SCL) {
+        Acceleration(): deviceReady(false), sensor(SDA, SCL), timer() {
                 oldValues[0] = 0;
                 oldValues[1] = 0;
                 oldValues[2] = 0;
-                t_start = time(NULL);
+                timer.start();
         }
         virtual ~Acceleration() {}
         virtual bool init() {
@@ -25,7 +25,7 @@
         bool deviceReady;
         MMA7660 sensor;
         float oldValues[3];
-        time_t t_start;
+        Timer timer;
 };
 
 #endif /* ACCELERATION_H */
\ No newline at end of file