Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface HTTPClient NTPClient mbed-rtos mbed
temperature_sensor.h
- Committer:
- wkinkeldei
- Date:
- 2012-12-31
- Revision:
- 0:53f05303850a
File content as of revision 0:53f05303850a:
#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