teste de publish

Revision:
5:8efd609dea7d
Parent:
4:3f92979d1ffb
Child:
17:c046e4b07ded
--- a/devices.h	Wed Jun 07 19:38:14 2017 +0000
+++ b/devices.h	Tue Jul 11 11:55:44 2017 +0000
@@ -1,6 +1,7 @@
 #include "mbed.h"
 #include "funcoesSDCard.h"
 #include "modbusMaster1.h"
+#include "SDFileSystem.h"
 #ifndef _devices_h_
 #define _devices_h_
 #define maxCaractereLeLinha 40
@@ -36,6 +37,7 @@
     //Maquina de estados alarme    
     uint32_t secAlarm;    
     bool alarmFound;
+    bool on;
 }alarm;
 
 
@@ -66,9 +68,8 @@
 
 class device{
     private:
-        uint8_t execActAlarm(uint32_t);                        
     public: 
-        uint8_t execAct(uint32_t);
+        uint8_t execAct(uint32_t);        
         uint8_t numAlarms;
         uint8_t numSchedules;
         uint8_t numScheduleExceptions;                
@@ -90,7 +91,8 @@
         void setScheduleException(char *);        
         void verifyAlarms();
         void verifySchedules();        
-        void writeReadingsToSD();        
+        void writeReadingsToSD();
+        void alarmOnOff(uint32_t,bool);
 };
 
 int criaDevices(FILE *);