Slow WiFi connection

User avatar
urbanze
Posts: 215
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Slow WiFi connection

Postby urbanze » Fri Dec 22, 2017 6:39 pm

With ESP66, the time for WiFi connection to return "WL_CONNECTED" was often about 200ms. Now with ESP32, all attempts return 2.5sec, why? How to make the connection faster, since in ESP66 it was ~ 12x faster?

Note: I already disabled NVS thinking it would be faster, but nothing has changed (I use ESP-IDF + Arduino component).

Code: Select all

	
	WiFi.mode(WIFI_STA);
	WiFi.begin("BLABLA", "");
	WiFi.config({ 192,168,9,133 }, { 192,168,9,1 }, { 255,255,255,0 }, { 8,8,8,8 });
In this example, I using static IP.

proddy
Posts: 1
Joined: Tue Jan 09, 2018 10:16 pm

Re: Slow WiFi connection

Postby proddy » Tue Jan 09, 2018 10:18 pm

I'm seeing something similar, can take up to 3 seconds to connect. Did you find the reason?

AndreVanKammen
Posts: 1
Joined: Mon Apr 16, 2018 4:37 pm

Re: Slow WiFi connection

Postby AndreVanKammen » Tue Apr 17, 2018 8:44 am

I'm also seing this problem.

I'm using a esp8266 as doorbell. It connects and sends a MQTT message under a second. My ESP32 takes arround 2.5 seconds to do the same.

The trick with the config function to bypass the DHCP doesn't work for me on the ESP32. It stays disconected if i use the config function.

Maybe i wil try the non Arduino functions to see if that helps.

Who is online

Users browsing this forum: No registered users and 2 guests