I have a finished and functional project that I have found a small fault but that can be important if it stops working for a while. It is the following:
It is a centralized security system, which informs me of the status of events in all areas that are being protected through notifications.
The problem: If I turn off and turn on the home modem, the device is offline, so I must restart the device so that it stays online again.
The question: is there a routine within the Arduio IDE code that detects me if the device goes offline and does not see the server? something like BLYNK_CONNECTED () but I do not know how to tell you how long it has been on offline.
The idea is that if it takes 2 minutes without a line, an automatic reboot will be done and the device will be back online without having to manually restart it.
Thanks and regards.