Dear Pete,
I’ve looked a little deeper, but there are errors that don’t match with the documentation.
@Gunner wrote in this topic how to solve it
char server[] = "blynk-cloud.com";
unsigned int port = 8080;
wifi.setDHCP(1, 1, 1); //Enable dhcp in station mode and save in flash of esp8266
Blynk.config(wifi, auth, server, port);
if (Blynk.connectWiFi(ssid, pass)) {
Blynk.connect();
}
In my case (maybe blynk 2 version something changed) auth not taken
[23]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ \/ '_/
/____/_/\_, /_//_/_/\_\
/___/ v1.1.0 on Arduino Mega
#StandWithUkraine https://bit.ly/swua
[534] Connecting to Ibadovlar
[3582] WIFI CONNECTED
AT version:1.1.0.0(May 11 2016 18:09:56)
SDK version:1.5.4(baaeaebb)
compile time:May 20 2016 15:08:19
OK
[8652] +CIFSR:STAIP,"192.168.1.7"
+CIFSR:STAMAC,"dc:4f:22:22:29:8d"
[8653] Connected to WiFi
[19844] Invalid auth token
Also, i have tried to delay before begin function, it is strange that after a while delay time begin function not working.