ESP8266 D1 mini Stuck at Connecting to blynk.cloud:80

ESP8266 D1 mini with WiFi
Blynk server
• Blynk Library version 1.0.1


#define BLYNK_TEMPLATE_ID           "TMPLxxxxxx"
#define BLYNK_DEVICE_NAME           "Device"
#define BLYNK_AUTH_TOKEN            "YourAuthToken"

#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = BLYNK_AUTH_TOKEN;

char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

void setup()
{
  Serial.begin(115200);

  Blynk.begin(auth, ssid, pass);
}

void loop()
{
  Blynk.run();
}

6302][6302] Connected to WiFi
[6302] IP: 192.xx.xx.xx
[6302] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v1.0.1 on ESP8266

[6379] Connecting to blynk.cloud:80

Stuck at Connecting to blynk cloud. It remains like this forever and no other code runs.

Are you connecting via a domestic router, or a hotspot on your phone?

If its a domestic router, have you tried rebooting it?

Pete.

Hi Pete, i am connecting via my mobile hotspot. I have also tried doing blynk connection step-wise using Blynk.config() and Blynk.connect() , but no surprise there.But everything works jolly good on my esp32.

So an ESP32 running similar Blynk code connects fine via the same hotspot?

Is your hotspot set to use 2.4GHz rather than 5GHz?

Pete.

since you are using mobile hotspot; try to connect trough port :8080.

to do that, you should change this:

to this:

Blynk.begin(auth, ssid, pass, "blynk.cloud", 8080);

Pete.

Hi Pete So GHz is not supported for ESP? I did try but could not connected

All ESP devices at 2.4GHz only.

Pete.

Yes ESP32 connects fine. Both the esps connect to wifi, there is only a problem connecting to the cloud. In my Blynk Dashboard it does show that the ESP8266 is online, there seems to be a problem after establishing the connection and before exiting out of the connection function.

So each device has its own unique device name and auth token?

Pete.

Yessir

This didn’t work either

UPDATE: The connection part of Blynk is fine. The pausing of the esp is happening in the void loop() function in which there is Blynk.run()
The printing of Running stops forever after a few loops.

Power supply issue?
Faulty device?

Pete.

The issue only happens with Blynk. The device is fine as far as I know.

When you’re testing it with non-Blynk code is that code establishing an internet connection and communicating with a remote server over that internet connection?

WiFi Tx and Rx operations consume much more power than the device simply sitting there running code in the loop that outputs something to the serial monitor.

Pete.

In my case, The serial print stopped working like this, I have moved serial.begin after Blynk.begin. It started to work fine.