An application to log WiFi SSIDs for position lookup testing

Dependencies:   C027_Support SWO mbed-rtos mbed picojson

Fork of lpc4088_ebb_ublox_Cellular_PubNubDemo_rtos by EmbeddedArtists AB

Revision:
1:cac9b2960637
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/measurement/AnalogMeasurement.cpp	Sun Feb 15 22:04:12 2015 +0000
@@ -0,0 +1,27 @@
+#include "AnalogMeasurement.h"
+
+AnalogMeasurement::AnalogMeasurement(AnalogIn& analog1, AnalogIn& analog2) :
+    _analog1(analog1),
+    _analog2(analog2)
+{
+    _init = false;
+}
+
+bool AnalogMeasurement::init()
+{
+    if (_init)
+        return false;
+    
+    _init = true;
+    return true;
+}
+
+bool AnalogMeasurement::run()
+{
+    float analog1 = _analog1.read();
+    float analog2 = _analog2.read();
+    
+    printf("A0: %.2f A1: %.2f", analog1, analog2);
+    
+    return true;
+}