Temperature dashboard assignment

Dependencies:   EthernetInterface LM75B mbed-rtos mbed

Fork of temperature-dashboard-start by Sille Van Landschoot

Committer:
gimohd
Date:
Sat Jan 16 17:13:41 2016 +0000
Revision:
17:c8a4886ba688
upload

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gimohd 17:c8a4886ba688 1
gimohd 17:c8a4886ba688 2 #ifndef TemperatureSensor_H
gimohd 17:c8a4886ba688 3 #define TemperatureSensor_H
gimohd 17:c8a4886ba688 4 #include "LM75B.h"
gimohd 17:c8a4886ba688 5 #include <mbed.h>
gimohd 17:c8a4886ba688 6 #include <string>
gimohd 17:c8a4886ba688 7
gimohd 17:c8a4886ba688 8 class TemperatureSensor : public LM75B{
gimohd 17:c8a4886ba688 9 public:
gimohd 17:c8a4886ba688 10 TemperatureSensor(PinName sca, PinName scl, std::string key, std::string name);
gimohd 17:c8a4886ba688 11 std::string getDataPacket();
gimohd 17:c8a4886ba688 12 private:
gimohd 17:c8a4886ba688 13 std::string name;
gimohd 17:c8a4886ba688 14 std::string key;
gimohd 17:c8a4886ba688 15 PinName sca;
gimohd 17:c8a4886ba688 16 PinName scl;
gimohd 17:c8a4886ba688 17 };
gimohd 17:c8a4886ba688 18
gimohd 17:c8a4886ba688 19 #endif