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/Signal.h	Fri May 08 12:19:57 2015 +0000
@@ -0,0 +1,26 @@
+#ifndef SIGNAL_H
+#define SIGNAL_H
+#include "mbed.h"
+#include "DeviceInfo.h"
+#include "AbstractReporter.h"
+
+
+class Signal: public AbstractReporter
+{
+public:
+        Signal(DeviceInfo& d): deviceInfo(d) {
+                oldValues[0] = 0;
+                oldValues[1] = 0;
+                t_start = time(NULL);
+        }
+        virtual ~Signal() {}
+        virtual bool init() { return true; }
+        virtual const char* name() const { return "dBm"; }
+        virtual size_t read(char*, size_t, char*, size_t);
+private:
+        int oldValues[2];
+        time_t t_start;
+        DeviceInfo& deviceInfo;
+};
+
+#endif /* SIGNAL_H */
\ No newline at end of file