hi, im having trouble to connect my hardware to the blync cloud.
im using wemos d1 mini, although wifi is already connected i seem to have an issue to connect to the cloud. can anyone help me with this
!image|344x500
Do you try to connect to legacy blynk server ?
Legacy server is down for ever !
tried using legacy to but it doesnt worked
Legacy server is down since 31/12/2022
You have to migrate to Blynk 2.0
currently im using 2.0, does wemos d1 mini compatible with blynk 2.0?
When you post serial output or code to the forum you should copy the text and paste it between triple backticks, rather than posting screenshots.
You are trying to connect to blynk-cloud.com
in both of your screenshots.
This is the Legacy server, and is now permanently decommissioned, so will never work.
Your sketch needs three lines of code copied from the web console device view to the very top of your sketch. When you do this, and compile the sketch with Blynk library version 1.x.x it will automatically connect to the Blynk IoT servers, provided you remove the legacy server name and port from the Blynk.begin command.
Pete.
hi,im sorry im very new to the blynk application and this coding was from a past project and can i know how to convert this to the new version of blynk
[Unformatted code removed by moderator]
Did you subscribe to Blynk 2.0 ?
https://blynk.cloud/dashboard/register
If yes start here
https://docs.blynk.io/en/getting-started/what-do-i-need-to-blynk
@amir Please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```
Copy and paste these if you can’t find the correct symbol on your keyboard.
Pete.
is this the right one?
#define BLYNK_TEMPLATE_ID "TMPL-0IcvWHU"
#define BLYNK_DEVICE_NAME "QUICKSTART "
#define BLYNK_AUTH_TOKEN "RqCuYI3Nrn_-ND0zfZVGiqklUzGrKVDv"
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[ ] = "RqCuYI3Nrn_-ND0zfZVGiqklUzGrKVDv ";
char ssid[ ] = "bb";
char pass[ ] = "amirizzani12";
void setup(){
Serial.begin(115200);
Blynk.begin(auth,ssid, pass);
}
void loop(){
Blynk.run();
}
I’d asked you to edit your existing post and add triple backticks, nit create a new post.
Your new sketch should work, but you’d be better changing this line…
to this…
char auth[] = BLYNK_AUTH_TOKEN;
Pete.
i used the auth token provided at the web blynk but when i run it with the code, invalid auth token are displayed.
Copy the text from your serial monitor and post it with triple backticks at the beginning and end.
Also post your updated sketch, also with triple backticks…
Pete.
#define BLYNK_TEMPLATE_ID "TMPLylkTwxrj"
#define BLYNK_DEVICE_NAME "Quickstart Device"
#define BLYNK_AUTH_TOKEN "kT13uAjaXGn41yhtJ5rHXytjbyunpHhp"
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[ ] = "BLYNK_AUTH_TOKEN ";
char ssid[ ] = "bb";
char pass[ ] = "amirizzani12";
void setup(){
Serial.begin(115200);
Blynk.begin(auth,ssid, pass);
}
void loop(){
Blynk.run();
}
64] Connecting to bb
[7418] Connected to WiFi
[7418] IP: 192.168.100.38
[7418]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ \/ '_/
/____/_/\_, /_//_/_/\_\
/___/ v1.0.1 on ESP8266
[7425] Connecting to blynk.cloud:80
[7589] Invalid auth token
When you post code using triple backticks the backticks need to be on a line of their own, otherwise the first line of the text you’re posting doesn’t display.
I’ve fixed this for you this time, so I can make sense of our sketch, but please do this yourself in future.
So, I said…
but instead you changed it to this…

char auth[ ] = "BLYNK_AUTH_TOKEN ";
so it’s not surprising that it’s not working.
Pete.
im still having the same invalid auth token
#define BLYNK_TEMPLATE_ID "TMPLylkTwxrj"
#define BLYNK_DEVICE_NAME "Quickstart Device"
#define BLYNK_AUTH_TOKEN "kT13uAjaXGn41yhtJ5rHXytjbyunpHhp"
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "kT13uAjaXGn41yhtJ5rHXytjbyunpHhp";
char ssid[] = "bb";
char pass[] = "amirizzani12";
void setup(){
Serial.begin(115200);
Blynk.begin(auth,ssid, pass);
}
void loop(){
Blynk.run();
}
I’ll say it again.
Delete this line of code…

char auth[] = "kT13uAjaXGn41yhtJ5rHXytjbyunpHhp";
and replace it with this line or code EXACTLY AS IT APPEARS BELOW…
char auth[] = BLYNK_AUTH_TOKEN;
Pete.
it works!! thank you so much for your help