Blynk connection management question

If an established wifi connection is temporarily lost due to a wifi router being restarted, will the blynk connection self heal with just blynk.run in the main loop when the wifi is available again? Or do I need to monitor the blynk connection status with blynk.connected and do the blynk.begin again?

Also, is it ok to have blynk.run in the main loop without first checking if it has connection using blynk.connected?

Hello,

This topic has been discussed several times in the forum. Please search “Wifi reconnect”

I got this as soon as i searched.

1 Like

That’s how to check the connection. My question was if the blynk.run will self heal the connection when it is available again.

Rather than asking the question, then arguing with someone who attempts to help, why not restart your router and observe the result?

Blynk.begin() is only called once, in void setup.

The only time you’d use Blynk.connected() in your void loop is if you were using Blynk.config() and Blynk.connect() instead of the blocking Blynk.begin() command.

Pete.