blynk should already have an example ready to continue executing the arduino code if it loses internet connection. In my case the whole sketch of my project gets stuck if it loses connection.
There are many example here on the forum. Take a little time and look around. I am sure you will find something that suits your needs
1 Like