Mario Simaremare / Mbed 2 deprecated g3_waterplay

Dependencies:   mbed

Revision:
3:7c648d1d8802
Parent:
2:ed17e258da0d
Child:
5:4cbe44452889
--- a/SalinitySensor.h	Tue Jun 14 09:14:24 2016 +0000
+++ b/SalinitySensor.h	Thu Jun 16 11:28:59 2016 +0000
@@ -6,12 +6,13 @@
 #define SALINITY_SENSOR_H
 
 #include "mbed.h"
+#include "Printer.h"
 
 class SalinitySensor
 {
 public:
     SalinitySensor(
-        mbed::Serial &serial,
+        Printer &printer,
         PinName pin,
         double const_voltage,
         double const_converter,
@@ -24,19 +25,22 @@
     double getVoltage();
     double getSalinity();
     double getStatus();
+    char* getStrStatus();
 
 private:
-    Serial &_serial;
+    Printer &_printer;
     AnalogIn _analog_in;
     double _const_voltage;
     double _const_converter;
     double _const_multiplier;
     double _const_lower_boundary;
     double _const_upper_boundary;
+    int _const_sample_number;
     double _reading;
     double _voltage;
     double _salinity;
     double _status;
+    char* _strStatus;
 };
 
 #endif
\ No newline at end of file