@ScruffR I did not write that code and I don’t know how it works. I got it from this thread. All I want is something that stops the device from trying to connect when the wifi goes down. Then, after say, a minute, it tries to connect again. If it fails, it will retry again once a minute.