Proof of concept for distance and temperature monitoring

Dependencies:   mbed mbedConnectorInterface mbedEndpointNetwork

Committer:
Luminoscity
Date:
Fri May 01 23:21:36 2015 +0000
Revision:
0:cb422b231ea5
Demo Temp and Distance Program;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Luminoscity 0:cb422b231ea5 1 /*
Luminoscity 0:cb422b231ea5 2 GroveTemp.h
Luminoscity 0:cb422b231ea5 3 IoT GarbageCollectors
Luminoscity 0:cb422b231ea5 4
Luminoscity 0:cb422b231ea5 5 Created by Timothy Ambrose on 4/29/15.
Luminoscity 0:cb422b231ea5 6 */
Luminoscity 0:cb422b231ea5 7
Luminoscity 0:cb422b231ea5 8 #ifndef GROVE_TEMP_H
Luminoscity 0:cb422b231ea5 9 #define GROVE_TEMP_H
Luminoscity 0:cb422b231ea5 10
Luminoscity 0:cb422b231ea5 11 #include "mbed.h"
Luminoscity 0:cb422b231ea5 12 #define TEMP_BETA 3975
Luminoscity 0:cb422b231ea5 13
Luminoscity 0:cb422b231ea5 14 class GroveTempSensor {
Luminoscity 0:cb422b231ea5 15 private:
Luminoscity 0:cb422b231ea5 16 float temperature,
Luminoscity 0:cb422b231ea5 17 resistance,
Luminoscity 0:cb422b231ea5 18 minTemp,
Luminoscity 0:cb422b231ea5 19 maxTemp;
Luminoscity 0:cb422b231ea5 20 bool minMaxDefined;
Luminoscity 0:cb422b231ea5 21
Luminoscity 0:cb422b231ea5 22 public:
Luminoscity 0:cb422b231ea5 23 GroveTempSensor();
Luminoscity 0:cb422b231ea5 24 float getTemp();
Luminoscity 0:cb422b231ea5 25 void resetMinMax();
Luminoscity 0:cb422b231ea5 26 float getMin();
Luminoscity 0:cb422b231ea5 27 float getMax();
Luminoscity 0:cb422b231ea5 28 };
Luminoscity 0:cb422b231ea5 29
Luminoscity 0:cb422b231ea5 30 #endif