Before creating the topic
(This bit for @PeteKnight
- Search forum for similar topics -
- Check http://docs.blynk.cc and http://help.blynk.cc/
- Add details :
• Hardware model + communication type. WEMOS D1R2
• Smartphone OS iOS 14.6
• Blynk server or local server - Blynk Server (Connecting to blynk-cloud.com:80
)
• Blynk Library version - 1.0.0 (I have also tried 0.6.1)
• Add your sketch code. Code should be formatted as example below.
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "myAuth";
char ssid[] = "mySSID";
char pass[] = "myPWD";
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
//Blynk.begin(auth, ssid, pass, IPAddress(45,55,96,146), 8080);
}
void loop()
{
Blynk.run();
}
Hi,
I have been using Blynk for about 3 years now, I have about 15 continuously connected devices, mostly Wemos ESP8266, around my home which were all developed using Blynk 1.0 in Arduino IDE. Today I wanted to make a quick change to one of them, but when I compiled the sketch and tested the Serial Monitor (SM) output stuck at Connecting to blynk-cloud.com:80
Wifi connected no problem, every time and returned a valid IP.
For all my sketches I have always used this basic Blynk connection method - Blynk.begin(auth, ssid, pass);
it has always worked in the past.
However, today . . . none of my sketches would connect after being freshly compiled - however all my existing devices remain connected (and can reconnect after a reset) with no problem.
Reverting to basics, I experimented with the Blynk_Blink sketch (above) and found that:
Blynk.begin(auth, ssid, pass);
does not connect . . . but
Blynk.begin(auth, ssid, pass, IPAddress(45,55,96,146), 8080);
does connect everytime . . (I pinged blynk-cloud.com to get my regional IP address)
Two main questions:
-
What has changed to stop
Blynk.begin(auth, ssid, pass);
from connecting, and -
Why do all my existing devices continue to connect?
thnx
billd
PS. I have done some experimenting with Blynk 2.0 . . . I’m still not convinced it’s the way forward for me, but probably will port some of the devices I use every day . . . So please no comments about “just upgrade already”; or “Blynk 2.0 is better” etc . . . I just want to try to understand why something has has work consistently for many years suddenly stopped working.