Look at using timeout timers instead of delay()
void DoSomethingNow() {
// do stuff now
timer.setTimeout(30000, DoSomethingLater); // will run this function in 30 seconds
}
void DoSomethingLater() {
// do the later stuff
}
Look at using timeout timers instead of delay()
void DoSomethingNow() {
// do stuff now
timer.setTimeout(30000, DoSomethingLater); // will run this function in 30 seconds
}
void DoSomethingLater() {
// do the later stuff
}