teste de publish

Revision:
4:3f92979d1ffb
Parent:
2:ca3723da6668
Child:
5:8efd609dea7d
--- a/devices.h	Fri Jun 02 13:22:07 2017 +0000
+++ b/devices.h	Wed Jun 07 19:38:14 2017 +0000
@@ -38,6 +38,8 @@
     bool alarmFound;
 }alarm;
 
+
+
 typedef struct _reading{    
     uint8_t type;
     uint8_t addr;
@@ -46,6 +48,11 @@
     uint8_t numRegs;        
 }reading;
 
+typedef struct _scheduleException{
+    uint32_t id_schedule;
+    uint32_t timestamp;
+}scheduleException;
+
 typedef struct _schedule{    
     uint32_t id;
     uint8_t weekday;
@@ -64,10 +71,12 @@
         uint8_t execAct(uint32_t);
         uint8_t numAlarms;
         uint8_t numSchedules;
+        uint8_t numScheduleExceptions;                
         uint16_t numReadings;
         alarm *alarms;
         reading *readings;
         schedule *schedules;
+        scheduleException *scheduleExceptions;
         //uint32_t id;
         
         device();
@@ -77,7 +86,8 @@
         void uint16_t_ToBin(uint8_t,uint16_t *,uint8_t *);
         void setAlarm(char *);
         void setReading(char *);
-        void setSchedule(char *);        
+        void setSchedule(char *);
+        void setScheduleException(char *);        
         void verifyAlarms();
         void verifySchedules();        
         void writeReadingsToSD();