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 Vincent Wochnik

Revision:
101:dbcd3bc51758
Child:
124:311fa85af2b3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/measurement/Location.h	Fri May 08 12:19:57 2015 +0000
@@ -0,0 +1,27 @@
+#ifndef LOCATION_H
+#define LOCATION_H
+#include "mbed.h"
+#include "GPSTracker.h"
+#include "AbstractReporter.h"
+
+
+class Location: public AbstractReporter
+{
+public:
+        Location(): gpsTracker() {
+                oldValues[0] = 0;
+                oldValues[1] = 0;
+                oldValues[2] = 0;
+                t_start = time(NULL);
+        }
+        virtual ~Location() {}
+        virtual bool init() { return true; }
+        virtual const char* name() const { return "GPS"; }
+        virtual size_t read(char*, size_t, char*, size_t);
+private:
+        GPSTracker gpsTracker;
+        float oldValues[3];
+        time_t t_start;
+};
+
+#endif /* LOCATION_H */
\ No newline at end of file