Reset all pin in case of loss of internet


I am using esp32 with Blynk2.0 for a simple project for my home automation.

Issue is that when my device loss internet its all pin get reset.

As we have BLYNK_CONNECTED() event to handle when we connected to blynk server, similarly I think blynk library has handled disconnect event to reset all pins.

Kindly provide solution to overwrite disconnect event.



Hey there,
When you create a datastream there’s an option in the additional settings " Sync with latest server value every time device connects to the cloud ", make sure to activate it.