Chat freely about anything...

User avatar
By kormilicinkostia
#86305 Hello.
I am trying to connect esp8266 module to my home network. My home network works using standard 802.11N. While esp8266 is trying to connect to my home network, I see this error in log files:
Code: Select allI (3950) wifi: state: 0 -> 2 (b0)
I (3957) wifi: state: 2 -> 3 (0)
I (3959) wifi: state: 3 -> 0 (1200)
D (3961) system_event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:kostia-wifi, ssid_len:11, bssid:1c:74:0d:8c:b6:04, reason:205 (other reason)
D (3967) event: running post WIFI_EVENT:5 with handler 0x40225044 on loop 0x40107b90
E (3975) WIFI: connect to the AP fail
D (3979) event: running post WIFI_EVENT:5 with handler 0x40253840 on loop 0x40107b90
D (3986) tcpip_adapter: if0 start ip lost tmr: enter
D (3991) tcpip_adapter: if0 start ip lost tmr: no need start because netif=0x40107eb8 interval=120 ip=0

If I use another WiFi network standard (not 802.11N), esp connects successfully. Could You explain, why this problem? I would like to have opportunity to connect to 802.11N networks.
User avatar
By QuickFix
#86322 Have a read through this post from 2015: Unstable association with 802.11n

In short you'll have to set the physical mode to PHY_MODE_11N:
Code: Select allbool wifi_set_phy_mode(enum phy_mode mode);