ESP8266TimeAlarms
ESP8266TimeAlarms copied to clipboard
Sunday 00:00 alarm error
Hi
if I try to set an alarm on Sunday before 1am in case of TZ set as CET-1 and I get an error 254
id=Alarm.alarmRepeat(dowSunday,0,1,0,WeeklyAlarm); // 0:1:0 every Saturday
The problem according to me it's do because the calculation it's made in EpochTime and the variable "value" in all the function is set as time_t and become negative. I fixed changing the variable "value" to int in ESP8266TimeAlarms.h and cpp. Seems to work now, but I am not sure it's the correct way.
thanks