Page 1 of 1

Wifi STA mode error

Posted: Fri Dec 13, 2019 3:54 am
by waiyar
I've been trying to connect to my AP from the ESP32 but have gotten several different error codes each time. I'm able to connect to other APs without issue but this AP have not been successful so far.

The code being used is from the examples(station example). The AP I'm trying to connect to is a normal router on channel 11 which I'm able to connect with other devices.

The most common error received was:

Code: Select all

I (2034) wifi: new:<11,0>, old:<1,0>, ap:<255,255>, sta:<11,0>, prof:1
I (2034) wifi: state: init -> auth (b0)
I (3034) wifi: state: auth -> init (200)
I (3034) wifi: new:<11,0>, old:<11,0>, ap:<255,255>, sta:<11,0>, prof:1
I (3034) wifi station: retry to connect to the AP
I (3044) wifi station: Error: 2
I (3044) wifi station: connect to the AP fail
I (5094) wifi station: retry to connect to the AP
I (5094) wifi station: Error: 205
I (5094) wifi station: connect to the AP fail
For other retry attempts:

Code: Select all

I (6414) wifi: new:<11,0>, old:<11,0>, ap:<255,255>, sta:<11,0>, prof:1
I (6424) wifi: state: init -> auth (b0)
I (6444) wifi: state: auth -> assoc (0)
I (7444) wifi: state: assoc -> init (400)
I (7444) wifi: new:<11,0>, old:<11,0>, ap:<255,255>, sta:<11,0>, prof:1
I (7444) wifi station: retry to connect to the AP
I (7444) wifi station: Error: 4
I (7454) wifi station: connect to the AP fail
I (9494) wifi station: retry to connect to the AP
I (9494) wifi station: Error: 205
I (9494) wifi station: connect to the AP fail
I've looked up the error codes but could not find the reason for code 205.

Re: Wifi STA mode error

Posted: Tue Dec 17, 2019 9:24 am
by waiyar
ESP32 connects fine to my mobile hotspot but not my home router. I've ran the wifi-scan example and ESP32 shows my router's network but with an empty BSSID.