Blynk.config() how to I define the ssid and the pwd

Hello,
I want to try to connect to one of 2 wifi networks.
If I use Blynk.begin(auth,ssid,pwd) it does not timeout.
so if the first network I try is not available it will not get to try the second.
How can I use Blynk.config defining the ssid and pwd needed?

Hope i am clear
and thanks in advance

If you use Blynk.config then it’s your responsibility to establish the Wi-Fi connection first, before calling Blynk.config & Blynk.connect.

You can do this with Blynk.connectWiFi(ssid, pass) or use the more conventional WiFi.config and:

  if (WiFi.status() != WL_CONNECTED)
  {
      WiFi.begin(ssid, pass); // connect to the network
  }

The (probably simpler and much better) alternative is to use @khoih’s library…

Pete.

Thank you!!!, this worked,
will also check out the library,
Thanks again