Cancel All Alarms
Opened this issue · 1 comments
viamgr commented
Is there any way to free whole alarms by a function? Currently, we should store the ID of that alarm in an extra variable.
jaggil commented
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