Connecting to blynk-cloud.com:80 ---> login timeout

Hello everyone, so i made a project using wemos and dht11 sensor, i’ve already login and uploading data to blynk 4 days ago, but after i turned off my device and turn it on again my project can’t connect to blynk and always timeout while connecting. I already searching about my problem in this forum but can’t find the answer. If you can helped me, thanks!

16:47:28.009 -> [2567] Connected to WiFi
16:47:28.009 -> [2567] IP: 192.168.43.37
16:47:28.009 -> [2567] 
16:47:28.009 ->     ___  __          __
16:47:28.009 ->    / _ )/ /_ _____  / /__
16:47:28.009 ->   / _  / / // / _ \/  '_/
16:47:28.009 ->  /____/_/\_, /_//_/_/\_\
16:47:28.009 ->         /___/ v0.6.1 on ESP8266
16:47:28.009 -> 
16:47:28.009 -> [2573] Connecting to blynk-cloud.com:80
16:47:31.166 -> [5706] Login timeout
16:47:33.170 -> [7706] Connecting to blynk-cloud.com:80
16:47:36.231 -> [10782] Login timeout
16:47:38.218 -> [12782] Connecting to blynk-cloud.com:80
16:47:41.301 -> [15862] Login timeout
16:47:43.309 -> [17862] Connecting to blynk-cloud.com:80
16:47:48.361 -> [22937] Connecting to blynk-cloud.com:80
16:47:51.434 -> [25998] Login timeout
16:47:53.464 -> [27998] Connecting to blynk-cloud.com:80
16:47:58.500 -> [33053] Connecting to blynk-cloud.com:80
16:48:03.507 -> [38054] Connecting to blynk-cloud.com:80
16:48:08.589 -> [43134] Connecting to blynk-cloud.com:80
16:48:12.132 -> [46670] Login timeout
16:48:14.112 -> [48670] Connecting to blynk-cloud.com:80
16:48:17.175 -> [51752] Login timeout
16:48:19.182 -> [53752] Connecting to blynk-cloud.com:80
16:48:25.382 -> [59934] Connecting to blynk-cloud.com:80
16:48:28.687 -> [63258] Login timeout
16:48:30.715 -> [65258] Connecting to blynk-cloud.com:80
16:48:37.241 -> [71813] Connecting to blynk-cloud.com:80
16:48:40.403 -> [74962] Login timeout
16:48:42.412 -> [76962] Connecting to blynk-cloud.com:80
16:48:45.453 -> [80027] Login timeout
16:48:47.464 -> [82027] Connecting to blynk-cloud.com:80
16:48:52.843 -> [87379] Connecting to blynk-cloud.com:80
16:48:55.900 -> [90459] Login timeout
16:48:57.879 -> [92459] Connecting to blynk-cloud.com:80
16:49:02.947 -> [97507] Connecting to blynk-cloud.com:80
16:49:06.001 -> [100580] Login timeout
16:49:08.029 -> [102580] Connecting to blynk-cloud.com:80
16:49:13.110 -> [107659] Connecting to blynk-cloud.com:80
16:49:16.153 -> [110728] Login timeout
16:49:18.152 -> [112728] Connecting to blynk-cloud.com:80
16:49:23.262 -> [117820] Connecting to blynk-cloud.com:80
16:49:26.349 -> [120902] Login timeout
16:49:28.340 -> [122902] Connecting to blynk-cloud.com:80
16:49:31.426 -> [125980] Login timeout
16:49:33.432 -> [127980] Connecting to blynk-cloud.com:80
16:49:36.475 -> [131046] Login timeout
16:49:38.479 -> [133046] Connecting to blynk-cloud.com:80
16:49:41.550 -> [136124] Login timeout
16:49:43.574 -> [138124] Connecting to blynk-cloud.com:80
16:49:48.690 -> [143240] Connecting to blynk-cloud.com:80
16:49:51.853 -> [146408] Login timeout
16:49:53.847 -> [148408] Connecting to blynk-cloud.com:80
16:49:58.829 -> [153409] Connecting to blynk-cloud.com:80
16:50:01.941 -> [156487] Login timeout
16:50:03.916 -> [158487] Connecting to blynk-cloud.com:80
16:50:08.981 -> [163563] Connecting to blynk-cloud.com:80
16:50:12.098 -> [166634] Login timeout
16:50:14.104 -> [168634] Connecting to blynk-cloud.com:80
16:50:19.146 -> [173703] Connecting to blynk-cloud.com:80
16:50:22.308 -> [176860] Login timeout
16:50:24.294 -> [178860] Connecting to blynk-cloud.com:80
16:50:29.360 -> [183941] Connecting to blynk-cloud.com:80
16:50:32.450 -> [187016] Login timeout
16:50:34.451 -> [189016] Connecting to blynk-cloud.com:80

This is my code:

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include "DHT.h"
#include <SimpleTimer.h> 
#define DHTTYPE DHT11
#define dht_dpin D4
DHT dht(dht_dpin, DHTTYPE); 
SimpleTimer timer;
char auth[] = "*******";
char ssid[] = "*********";
char pass[] = "**********";
float t;
float h;

void setup()
{
    Serial.begin(115200);
    Blynk.begin(auth, ssid, pass);
    dht.begin();
    timer.setInterval(2000, sendUptime);
}

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

void sendUptime()
{
  float h = dht.readHumidity();
  float t = dht.readTemperature(); 
  Serial.println("Humidity and temperature\n\n");
  Serial.print("Current humidity = ");
  Serial.print(h);
  Serial.print("%  ");
  Serial.print("temperature = ");
  Serial.print(t); 
  Blynk.virtualWrite(V0, t);
  Blynk.virtualWrite(V1, h); 
}

*: i only blurred my token, ssid, and pass. Not really writing like that in my project

Trying to read a DHT11 every 2 seconds is a bit ambitious, as they are very slow (and inaccurate|), but that shouldn’t be causing this problem.

Try rebooting your router, and if that doesn’t work try adding BLYNK_DEBUG…
https://docs.blynk.cc/#blynk-firmware-debugging

Pete.

hey thanks pete, add BLYNK_DEBUG at void loop? I’m sorry if my question too dumb, this is my first time using blynk

You have to click on the link I provided and read what it says.
For the avoidance of any doubt, where it says “the first line in your code” that means the very first line at the top of your sketch.

Pete.

17:59:36.633 -> [6410] Connected to WiFi
17:59:36.633 -> [6410] IP: 192.168.43.37
17:59:36.666 -> [6410] 
17:59:36.666 ->     ___  __          __
17:59:36.666 ->    / _ )/ /_ _____  / /__
17:59:36.666 ->   / _  / / // / _ \/  '_/
17:59:36.666 ->  /____/_/\_, /_//_/_/\_\
17:59:36.666 ->         /___/ v0.6.1 on ESP8266
17:59:36.666 -> 
17:59:36.666 -> [6417] Connecting to blynk-cloud.com:80
17:59:36.767 -> [6520] <[1D|00|01|00] 4HIcnj4PAIBH9J4evmoqL-IZtPDeu9da
17:59:39.773 -> [9522] Login timeout
17:59:41.743 -> [11522] Connecting to blynk-cloud.com:80
17:59:41.796 -> [11569] <[1D|00|01|00] 4HIcnj4PAIBH9J4evmoqL-IZtPDeu9da
17:59:44.803 -> [14571] Login timeout
17:59:46.809 -> [16571] Connecting to blynk-cloud.com:80
17:59:46.909 -> [16636] <[1D|00|01|00] 4HIcnj4PAIBH9J4evmoqL-IZtPDeu9da
17:59:49.871 -> [19638] Login timeout
17:59:51.862 -> [21638] Connecting to blynk-cloud.com:80
17:59:51.962 -> [21690] <[1D|00|01|00] 4HIcnj4PAIBH9J4evmoqL-IZtPDeu9da

This is what happens after i add blynk_debug and i already changed reading time of dht11 to every 5 seconds

#define BLYNK_PRINT Serial
#define BLYNK_PRINT Serial // Defines the object that is used for printing
#define BLYNK_DEBUG        // Optional, this enables more detailed prints
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include "DHT.h"
#include <SimpleTimer.h> 
#define DHTTYPE DHT11
#define dht_dpin D4
DHT dht(dht_dpin, DHTTYPE); 
SimpleTimer timer;
char auth[] = "**";
char ssid[] = "**";
char pass[] = "**";
float t;
float h;

void setup()
{
    Serial.begin(115200);
    Blynk.begin(auth, ssid, pass);
    dht.begin();
    timer.setInterval(5000, sendUptime);
}

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

void sendUptime()
{
  float h = dht.readHumidity();
  float t = dht.readTemperature(); 
  Serial.println("Humidity and temperature\n\n");
  Serial.print("Current humidity = ");
  Serial.print(h);
  Serial.print("%  ");
  Serial.print("temperature = ");
  Serial.print(t); 
  Blynk.virtualWrite(V0, t);
  Blynk.virtualWrite(V1, h); 
}

someone has a similiar problem and it has solved

that is the link.

Hi!

Get stuck connecting to blynk.cloud, getting error: Connecting to blynk.cloud:80, Login timeout.
Even code from Blynk exemple board won’t run.
ssid and pass is correct, used in the past.
Non of following options is working;
Blynk.begin(auth, ssid, pass);
Blynk.begin(auth, ssid, pass, “blynk.cloud”, 80);
Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
NodeMCU ESP8266 ESP-12E CH340G v3 WiFi USB Development Board.
Code included folowing:

#define BLYNK_TEMPLATE_ID “”
#define BLYNK_DEVICE_NAME “”
#define BLYNK_AUTH_TOKEN “”

#define BLYNK_PRINT Serial

#include <WiFiClient.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth = BLYNK_AUTH_TOKEN;

Thanks, Tomas

@Orbita this topic is about a problem connecting to blynk-cloud.com But your problem is connecting to blynk.cloud a different url, and a different problem which requires a different solution.

I’d suggest that you start a new “Need hep with my project” topic and provide ALL of the information that is requested when you do this.

Pete.