I tried to use Blynk on my Wemos D1 Mini Pro.
Just opened the example ESP8266_Standalone, didn’t change the code, just wrote my auth, ssid and pass like written in several tutorials.
Everything connects fine to WIFI. See below. But no connection to Blynk-Cloud…
What is my fault?
Connected to WiFi
IP: 169.254.97.84
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ \/ '_/
/____/_/\_, /_//_/_/\_\
/___/ v0.6.0 on ESP8266
Connecting to blynk-cloud.com:80
Connecting to blynk-cloud.com:80
Every second another try... and so on...
Any help appreciated!
I just read several topics here in Blynk-Community… tried several things (Ports, Server etc.) but nothing helped…
Your D1 Mini isn’t getting a proper IP address from your router. Maybe your router only accepts MAC addressed in its whitelist, or maybe you’ve run-out of addresses in the DHCP pool?
Or, maybe just rebooting the router will solve the problem.
IP Address range is 2-253. Every other devices can connect without problems, even guest-ones…
There is no option in the code to define the local-network-ip-address. At SSID I’m writing the real name of the network, am I right?!?
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "***";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Vodafone-90EB"; //real name of my network
char pass[] = "***";
void setup()
{
// Debug console
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
}
load 0x4010f000, len 1384, room 16
Connecting to *Network*
Connected to WiFi
IP: 192.168.1.183
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ \/ '_/
/____/_/\_, /_//_/_/\_\
/___/ v0.6.0 on ESP8266
Connecting to blynk-cloud.com:80
Connecting to blynk-cloud.com:80
Connecting to blynk-cloud.com:80
Connecting to blynk-cloud.com:80
Connecting to blynk-cloud.com:80
Connecting to blynk-cloud.com:80
and so on...
PING blynk-cloud.com (139.59.206.133): 56 data bytes
64 bytes from 139.59.206.133: icmp_seq=0 ttl=50 time=34.177 ms
64 bytes from 139.59.206.133: icmp_seq=1 ttl=50 time=23.279 ms
64 bytes from 139.59.206.133: icmp_seq=2 ttl=50 time=30.655 ms
64 bytes from 139.59.206.133: icmp_seq=3 ttl=50 time=28.589 ms
64 bytes from 139.59.206.133: icmp_seq=4 ttl=50 time=33.088 ms
Also, you are using version v0.6.0 of the Blynk library and the latest version is 0.6.1 so it might be worth updating it.
What version of the ESP core are you using? (Tools, Board, Boards Manager and scroll down to ESP by ESP community - the latest version is 2.6.3).
If none of this works then try turning on debugging:
Why I’m using these old versions? Because OSX is not supporting Python3.
I tried to re-compile the Wemos with Windows… Everything works fine.
So I have to figure out, how to get Python3 on my Mac…
/Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/python3: no such file or directory
I’m not sure what it is that you’re saying worked, but as the Blynk Legacy blynk-cloud.com servers have now been decommissioned, it’s impossible to connect to them in any way.