yet another 18B20 Temperature sensor. variable number of sensors working in parasite mode, serial 16x2 display with diagnostic output and post to a rest web service

Dependencies:   EthernetInterface HTTPClient NTPClient mbed-rtos mbed

Revision:
0:53f05303850a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/temperature_sensor.h	Mon Dec 31 12:08:24 2012 +0000
@@ -0,0 +1,20 @@
+#ifndef TEMPERATURE_SENSOR_H
+#define TEMPERATURE_SENSOR_H
+
+#include "sensor.h"
+#include "one_wire.h"
+
+class TemperatureSensor : public Sensor {
+public:
+    TemperatureSensor(PinName pin, char *url_part, char *name);
+
+    virtual void prepare_measure(void);
+    virtual void measure(void);
+    virtual char *last_measure(void);
+
+protected:
+    OneWire one_wire;
+    char buffer[10];
+};
+
+#endif