Temperature dashboard assignment
Dependencies: EthernetInterface LM75B mbed-rtos mbed
Fork of temperature-dashboard-start by
Diff: TemperatureSensor.h
- Revision:
- 17:c8a4886ba688
diff -r 58c33ec28b2a -r c8a4886ba688 TemperatureSensor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TemperatureSensor.h Sat Jan 16 17:13:41 2016 +0000 @@ -0,0 +1,19 @@ + +#ifndef TemperatureSensor_H +#define TemperatureSensor_H +#include "LM75B.h" +#include <mbed.h> +#include <string> + +class TemperatureSensor : public LM75B{ + public: + TemperatureSensor(PinName sca, PinName scl, std::string key, std::string name); + std::string getDataPacket(); + private: + std::string name; + std::string key; + PinName sca; + PinName scl; +}; + +#endif \ No newline at end of file