If each of your periodes is 15min then why not have one multi-shot timer that just stops after 8 events?
void timerCallback() {
static int count = 0;
// do whatever
if (++count >= 8) {
t.stop();
count = 0; // for next 8-part run
}
}
If each of your periodes is 15min then why not have one multi-shot timer that just stops after 8 events?
void timerCallback() {
static int count = 0;
// do whatever
if (++count >= 8) {
t.stop();
count = 0; // for next 8-part run
}
}