I have to clarify a doubt:
if a device in the field like Wemos D1 mini “loses” the communication with the server (for example) because of a failure to the access point, with which function could I stop the operations that happen automatically on Wemos?
A code could be this:
bool connect = Blynk.connected();
if(connect != true){
//stop code for loss of connection to the wifi network
}else{
//normal operation when connected device
}
Can this function not only stop the code but also reboot on reconnection?
What other solutions (perhaps with some examples) could be useful for this purpose?
thank you so much