I am facing same problem, I am using board as NodeMCU 1.0 Baud rate 9600 and using below code. Uploaded to NodeMCU but in Blynk it is still showing me my project offline. I have also changed Auth, SSID and Pass too. Please help.
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "XXXXXX";
char ssid[] = "XXXXXX"; //Username for wifi
char pass[] = "XXXXXX";// Password for wifi
//char server[] = "171.61.134.20";
//int port = 8080;
void setup()
{
//Debug Consol
Serial.begin(9600);
/* pinMode(D1,OUTPUT);//Extend these to D8 if you are using D8 Relay
pinMode(D2,OUTPUT);
pinMode(D3,OUTPUT);
pinMode(D4,OUTPUT);
digitalWrite(D1,HIGH);//Make it LOW if you want everything to go off
digitalWrite(D2,HIGH);// in case of power cut
digitalWrite(D3,HIGH);
digitalWrite(D4,HIGH);*/
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
}
@perveshgoyal 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:
```
You should be seeing some debug info in the serial monitor.
Check that you have the correct COM port selected and that your serial cable isn’t faulty.
Try changing the card rate in your sketch to 74880 and upload it again, the select the same baud rate in your serial monitor.
74880 is probably the default baud rate for your NodeMCU, so this will allow you to see boot messages from the board, plus debug messages from your sketch is the same serial monitor session.
Press the reset button on the NodeMCU and you should start to see something in the serial monitor. If not then reboot your PC and try again.
Post the messages that you eventually see here (copy and paste them using CTRL A to select all and CTRL C to copy rather than posting screenshots).