Hello, I have a problem related to stuck [527] connecting to the wifi on the serial monitor when I want to connect to blynk, can you please help me? I’ve been stuck for hours on this issue and haven’t found a solution yet.
I’m using
• Hardware model + communication type : Arduino Mega 2560 R3 + ESP8266 Wifi + Micro USB Cable | IoT - CH340G
• Blynk server
• Blynk Library version 0.3.8
Your sketch isn’t stuck connecting to Blynk, it’s stuck connecting to your WiFi.
This line of code is redundant
as you’ve already defined Serial3 the alias of EspSerial and you then go-on to re-initialise that port…
You certainly shouldn’t have this in your void loop…
The baud rate you use to communicate with your ESP-01 needs to match what your ESP-01 is expecting. That varies depending on the version of the AT firmware that your ESP-01 is running, and whether you’ve overridden those defaults with an AT command.
You also need to check that the Tx pin on Serial3 is connected to the Rx pin on your ESP-01 and vice-versa.
To clarify, I’m using Arduino Mega with built-in ESP8266 on the board. To flash the firmware, I need to change some switches on the board. The firmware I use was from this video tutorial BLYNK ON MEGA+WiFi R3 ATmega2560+ESP8266 - YouTube The ESP8266 is running and communicating with the board because it doesn’t show the “ESP not responding” error in the serial monitor. Yet the ESP8266 is stuck connecting to my wifi.