Wifi connection on xiao esp32c6 takes >10 minutes

HI there,

A suggestion if I may, also is to try the WPS example in the ESP examples. I tested a known sketch with it and subbed in a Xiao ESP32C6 (no external antenna) just onboard one. It takes longer than the C3 in the same setup. My AP is out in the carport media closet over 100’ away.
The C3 connects in seconds and doesn’t throw any errors, (BSP 2.1.7) Get’s an IP address easy peasy.

The C6 connects in under 1 minutes but does show some errors with the handshaking (BSP 3.0.0 or 3.0.1) the serial output is posted below

Station Mode Started
Starting WPS
Disconnected from station, attempting reconnection
E (33194) wifi:sta is connecting, return error
E (33908) wifi:sta is connecting, return error
Disconnected from station, attempting reconnection
E (33909) wifi:sta is connecting, return error
WPS Successfull, stopping WPS and connecting to: 
Connected to :GlassSurf-2.4
Got IP: 192.168.1.172

It appears to me the BSP is having some effect on the connection, you can look up the Error’s,
I would roll back to the 3.0.0 and try you setup again.

HTH
GL :slight_smile: PJ
:v:

same setup with C3 , here’s the output , no errors and connects fast in seconds compared to C6

Station Mode Started
Starting WPS
Disconnected from station, attempting reconnection
WPS Successfull, stopping WPS and connecting to: 
Disconnected from station, attempting reconnection
Connected to :GlassSurf-2.4
Got IP: 192.168.1.167