Programa Teste para monitoramento de ativos eletricos

Dependencies:   logger

Revision:
3:213ab6bbf852
Child:
4:bdc930225ade
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/classes/Temperatura.h	Sat May 04 12:41:39 2019 +0000
@@ -0,0 +1,22 @@
+#include "Logger.h"
+
+/// Sensor de temperatura
+class Temperatura {
+    public: 
+        /// Retorna a leitura da Temperatura
+        double verificaTemperatura() {
+            _status = 27.5;
+            _l->log("Retorna a temperatura ... 27.5");
+
+            return _status;
+        }
+
+        void setLog(Logger * l) {
+            _l = l;
+        }
+
+    private:
+        Logger* _l;
+        double _status = 0;
+}
+;