Problem connecting my ESP32 to the WiFi router

Hi.

I have a problem connecting my ESP32 to the WiFi router. Inside the Setup function my program sometimes stays stopped in the line:

Blynk.begin(auth, ssid, pass);

Normally I have to reset the ESP32 board 3 or 4 times to get connected to my router’s WiFi, I would like to know if this has happened to someone else. My routes is a Linksys WRT54GL which is very close to my ESP32.

Thanks
BlackTiger.

you should enable blynk serial debug and check, maybe it will provide additional info. also, do not forget that esp32 core is still very buggy, so, can happen anything.

Thanks wanek.

Sometimes when the ESP32 does not connect to WiFi on my router, I get the following message.

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0008,len:8
load:0x3fff0010,len:2232
load:0x40078000,len:11744
load:0x40080000,len:252
entry 0x40080034
[D][WiFiGeneric.cpp:174] _eventCallback(): Event: 2 - STA_START
[D][WiFiGeneric.cpp:174] _eventCallback(): Event: 5 - STA_DISCONNECTED
[W][WiFiGeneric.cpp:180] _eventCallback(): Reason: 203 - HANDSHAKE_TIMEOUT

Other times that does not connect to WiFi does not even get the last 3 lines of the previous message.

Thanks.

i do not have too much experience with esp32, but based on the above message it seems the issue is rather esp32 core related than blynk. make sure you have the latest arduino ide, esp32 core, blynk lib.

if the problem still persist, you should ask on the esp32 forum / github what that error message means.