BLYNK
BLYNK.IO       📲 GETTING STARTED       📗 DOCS       👉 SKETCH BUILDER

Problem with my WiFi connection (does not connect)

I can not connect to my home network . I’m using NodeMCU - ESP8266 . The following message is displayed and nothing more: [ 267 ] Connecting to D463FE

WiFi home credentials:
char ssid[] = “D463FE”;
char pass[] = “271768537”;

The corporate network the device works normally.
WiFi corporate credentials:
//char ssid[] = “netvirtua-1108”;
//char pass[] = “rmfe1108”;

My code:

#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <SPI.h>
#include <Ethernet.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = “my_token”;

// Your WiFi credentials.
// Set password to “” for open networks.
//char ssid[] = “netvirtua-1108”;
//char pass[] = “rmfe1108”;
char ssid[] = “D463FE”;
char pass[] = “271768537”;

WidgetLED led1(V1);

void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);

// Make pin D2 default HIGH, and attach INT to our handler
pinMode(D4, INPUT_PULLUP);
}

What might be happening?

Are you able to change the SSID on the router to say at least 8 characters?

1 Like

Yes ,I can try!
This is a requirement?
Thank you!

Dunno to be honest but worth a try. I believe the regular standard for SSID is between 1 and 32 characters but I’m not sure for ESP’s.

What encryption do you have on your router?

#include <BlynkSimpleEsp8266.h>

const char* ssid     = "<ssid>";
const char* password = "<password>";

char auth[] = "<auth code>";

WidgetLED led1(V1);

void setup() 
{
    Serial.begin(115200);
    Blynk.begin(auth, "<ssid>","<password>");
    while (Blynk.connect() == false) {  }
    Blynk.syncAll();

    pinMode(D4, INPUT_PULLUP);//and other stuffs
}

//other nonsense stuffs that need to be done at sync. goes here

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

//Rest of the stuffs goes here that nee to run after sync. goes here

@prano add the following code as the first line of your sketch and then report back with Serial Monitor details.

#define BLYNK_PRINT Serial

@Costas Costas: I usually don’t have this habit of taking instructions from someone, from next time change your way how you are posting in forum.

[xxxxx] Connected to WiFi
[xxxxx] IP: 192.168.225.xxx
[xxxxx] Blynk v0.4.0 on NodeMCU
[xxxxx] Connecting to blynk-cloud.com:844x
[xxxxx] Ready (ping: 1ms).

I remodified sketch to:

#define BLYNK_PRINT Serial
#include <BlynkSimpleEsp8266.h>

const char* ssid     = "xxxx";
const char* password = "xx";

char auth[] = "abcd";

//WidgetLED led1(V1);

void setup() 
{
    Serial.begin(9600);
    Blynk.begin(auth, "xxxx", "xx");
    while (Blynk.connect() == false) {  }
    Blynk.syncAll();

    //pinMode(D4, INPUT_PULLUP);//and other stuffs
}

//other nonsense stuffs that need to be done at sync. goes here

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

char auth[] = “my_token”;

Replace my toke with your “auth token” from your email thats blynk send you. Chek token and put it to your code.