Delete a alert - using timeAlarms library

Hi!
I would like to use the timeAlarms library to call a function at a specific time. I know how to set a alarm but is it possible to reset the alarm? I simply want to change the time when the alarm is triggered.

Can anybody tell me whether / how this can be done?

Have a look at the readme that comes with the TimeAlarms library. It describes low level functions to manage alarms, including a function to disable an alarm. You could, therefore, reset an alarm to prevent it occurring and set another one in its place.

Thank you for your answer. I read something similar already but if you just disable the alarm it still counts as a alarm. Due to the maximum number of alarms (6 alerts) i really need to delete or reset the alarm!

How many alarms do you need ?
Look at this line in TimeAlarms.h

#define dtNBR_ALARMS 6   // max is 255

Ok that should be enough :slight_smile: Nevertheless is there any possibility to do this properly and delete the unnecessary alarms?

What type of alarm do you want to reset ?

I want to reset a alarm like this one:
Alarm.alarmOnce(hours, minutes, seconds, function);

The alarm should trigger only once at a certain time.