to this: Serial.begin(74880);
as this is most likely the native baud rate of your NodeMCU, and you’ll see boot messages as well as your serial output without any gargled characters.
Then, in the Arduino IDE click this icon in the top right hand corner…
and set the baud rate to 74880.
Now, when you boot the device you should see some boot messages from the board, and some information messages from Blynk.
Now currently on my serial monitor all i see is connecting to my wifi and after it connects it ends at ready and states the ping. I seriously do not know what to do after this
Hi man, this is what came out. Unlike my previous ones, it indeed had the notification someone opened the door at the bottom, however, the notification did not come to phone.
load 0x4010f000, len 3460, room 16
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4
tail 4
chksum 0xc9
csum 0xc9
v00046430
~ld
[65] Connecting to yoon
[6291] Connected to WiFi
[6291] IP: 192.168.18.11
[6291]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ \/ '_/
/____/_/\_, /_//_/_/\_\
/___/ v1.0.0-beta.3 on ESP8266
[6301] Connecting to blynk-cloud.com:80
[6331] Ready (ping: 8ms).
Someone Opened the door
It sees that the codee is working well because in the serial monitor when i disconnect the reed switch the message someone opened the door will come up. The bad thing is that it doesn’t come up on my phone which is very weird
Hi pete
The project was previously successful and all was good. However, recently, the code has not been working although i have the latest libraries. The serial monitors also show this instead of showing that the code works.
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x4010f000, len 3460, room 16
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4
tail 4
chksum 0xc9
csum 0xc9
v000463f0
~ld
[71] Connecting to yoon
Hi man, my WiFi network is actually 5Ghz. However, the weird thing is that before today it worked perfectly at home
by the way this is my current code
[71] Connecting to yoon
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
BlynkTimer timer;
char auth[] = "4D9OLYSjbs-_ojg78CO8a0mzDRZIsUeI";
char ssid[] = "yoon"; //yoon
char pass[] = "Jangyong123$"; //Jangyong123$
int flag=0;
void notifyOnButtonPress()
{
int isButtonPressed = digitalRead(D1);
if (isButtonPressed==1 && flag==0) {
Serial.println("Someone Opened the door");
Blynk.notify("Alert : Someone Opened the door");
flag=1;
}
else if (isButtonPressed==0)
{
flag=0;
}
}
void setup()
{
Serial.begin(74880);
Blynk.begin(auth, ssid, pass);
pinMode(D1,INPUT_PULLUP);
timer.setInterval(16000L,notifyOnButtonPress);
}
void loop()
{
Blynk.run();
timer.run();
}[71] Connecting to yoon
It’s not possible for an ESP8266 or ESP32 to connect to a 5GHz WiFi network.
Maybe your router is/was broadcasting the same SSID on both frequencies…
Maybe you should start by rebooting your router, then if the problem persists checking its configuration.
Hi man thanks. I rebooted my router and it reset bakc to 2.4Ghz. However, now when i upload the code it says
the selected serial port _
does not exist or your board is not connected