Closed
Description
Board
DOIT ESP32 DEVKIT V1
Device Description
Nothing special
Hardware Configuration
Nothing connected
Version
v2.0.10
IDE Name
Arduino IDE
Operating System
Windows 10
Flash frequency
40 Mhz
PSRAM enabled
no
Upload speed
921600
Description
Following code connects wifi after initial connect within about 200ms using lib version 2.0.9. With version 2.0.10 it took up to 1500ms.
Sketch
#include <WiFi.h>
void setup() {
WiFi.setAutoConnect(false);
WiFi.setAutoReconnect(false);
Serial.begin(115200);
long starttime = millis();
Serial.println("Fast connect to WiFi...");
WiFi.persistent(true);
WiFi.config(IPAddress(XXX), IPAddress(XXX), IPAddress(XXX), IPAddress(XXX));
WiFi.begin();
if(WiFi.waitForConnectResult(5000) != WL_CONNECTED) {
Serial.println("Fast connect failed");
byte bssid[] = {XXX};
WiFi.begin("XXX", "XXX", XXX, bssid);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.println("Connecting to WiFi..");
}
}
Serial.print("Connected to the WiFi network in ");
Serial.print(millis() - starttime);
Serial.println("ms");
Serial.println(WiFi.SSID());
Serial.println(WiFi.BSSIDstr());
Serial.println(WiFi.channel());
Serial.println(WiFi.localIP());
}
void loop() {
// put your main code here, to run repeatedly:
}
Debug Message
###With Version 2.0.9:
20:38:27.165 -> Fast connect to WiFi...
20:38:32.330 -> Fast connect failed
20:38:32.862 -> Connecting to WiFi..
20:38:33.376 -> Connecting to WiFi..
20:38:33.376 -> Connected to the WiFi network in 6204ms
20:38:33.376 -> XXX
20:38:33.376 -> XXX
20:38:33.376 -> XXX
20:38:33.376 -> XXX
20:38:36.672 -> Fast connect to WiFi...
20:38:36.890 -> Connected to the WiFi network in 214ms
20:38:36.890 -> XXX
20:38:36.890 -> XXX
20:38:36.890 -> XXX
20:38:36.890 -> XXX
###With Version 2.0.10
20:53:43.735 -> Fast connect to WiFi...
20:53:48.947 -> Fast connect failed
20:53:49.459 -> Connecting to WiFi..
20:53:49.974 -> Connecting to WiFi..
20:53:49.974 -> Connected to the WiFi network in 6202ms
20:53:49.974 -> XXX
20:53:49.974 -> XXX
20:53:49.974 -> XXX
20:53:49.974 -> XXX
20:53:55.699 -> Fast connect to WiFi...
20:53:56.742 -> Connected to the WiFi network in 1028ms
20:53:56.742 -> XXX
20:53:56.742 -> XXX
20:53:56.742 -> XXX
20:53:56.742 -> XXX
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done