lib para o framework sgam

Dependencies:   MPU6050 Grove_temperature

Dependents:   example_smart-grid

Revision:
3:f998244e9f80
Parent:
1:53edfdd6ac03
Child:
4:f21aab30658a
--- a/peripheral/Sensor.h	Sat Jun 01 16:27:17 2019 +0000
+++ b/peripheral/Sensor.h	Sun Jun 02 16:51:13 2019 -0300
@@ -3,13 +3,14 @@
 
 #include "mbed.h"
 
+template <class T>
 class Sensor {
 public: 
     Sensor() { } ;
-    virtual ~Sensor();
+    ~Sensor(){ };
 
-    virtual void* getValue() = 0;
-    virtual void readOcurred( void* (*callBack)(void* value), float timeout = 0.0) = 0;
+    virtual T* getValue() = 0;
+    virtual void readOcurred( void* (*callBack)(T* value), float timeout) = 0;
 };
 
 #endif // SGAM_SENSOR_H