-

Dependents:   Sensor

Revision:
0:0f5101a649db
Child:
1:810b9b0dd9a4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HygroClip2.h	Tue Feb 16 11:34:37 2016 +0000
@@ -0,0 +1,29 @@
+#ifndef HYGROCLIP2_H_
+#define HYGROCLIP2_H_
+
+#include "mbed.h"
+
+const size_t HYGROCLIP_BUFFER_SIZE = 120;
+
+class HygroClip2
+{
+public:
+    HygroClip2(PinName tx, PinName rx);
+    void update();
+    float getTemperature();
+    float getHumidity();
+    float getDewPoint();
+    float getAbsolutHumidity();
+private:
+    // Private functions
+    void uartCallback();
+        
+    // Variables
+    Serial uart_;
+    float temperature_;
+    float humidity_;
+    bool dataReadyToPars_;
+    int8_t buffer_[HYGROCLIP_BUFFER_SIZE + 1];
+};
+
+#endif
\ No newline at end of file