How to check alarm time on timeAlarm library?
it is possible to know the "alarm ID" is enable or disable?
I got this code from the old forum
void checkAlarm(){
showAlarmTime(ID1);
showAlarmTime(ID2);
showAlarmTime(ID3);
showAlarmTime(ID4);
showAlarmTime(ID5);
showAlarmTime(ID6);
Serial.println("----------------------------------------------------");
}//checkAlarm
void showAlarmTime(AlarmID_t id){
time_t alarmTime = Alarm.read(id);
if(alarmTime != 0)
{
if( alarmTime <= SECS_PER_DAY)
Serial.print(" repeat alarm with ID ");
else
Serial.print(" once only alarm with ID ");
Serial.print(id, DEC);
Serial.print(" set for ");
digitalClockDisplay1(alarmTime);
}
}//showAlarmTime
but, i guess those code doesn't show the alarm is disabled or enabled.
thanks for any suggestions.
regards,
nug.