CronAlarms
CronAlarms copied to clipboard
Cancel All Alarms
Is there any way to free whole alarms by a function? Currently, we should store the ID of that alarm in an extra variable.
I do this:
Serial.printf("Total Cron ID´s: %d \n",Cron.count()); //Total id´s before
for (byte id = 0; id < 255; id++) { Cron.free(id); } //Cron_IDs are numbered from 0 to 254
Serial.printf("Total Cron ID´s: %d \n",Cron.count()); //Total id´s after, must be 0