Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By btidey
#83733 Create a unsigned long variable lastAccessTime and a constant IDLE_TIME set to time out desired in milliseconds.

Initialise it to millis() in set up

In each server access handler update lastAccessTime to millis()

In loop add a test to see if idle time is exceeded and perform a restart as required

if(millis() > (lastAccessTime + IDLE_TIME)) {
ESP.restart();
}