Page 1 of 1

Slow WiFi connection

Posted: Fri Dec 22, 2017 6:39 pm
by urbanze
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.

Re: Slow WiFi connection

Posted: Tue Jan 09, 2018 10:18 pm
by proddy
I'm seeing something similar, can take up to 3 seconds to connect. Did you find the reason?

Re: Slow WiFi connection

Posted: Tue Apr 17, 2018 8:44 am
by AndreVanKammen
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.