ESP8266 Developer Zone The Official ESP8266 Forum 2017-05-11T22:04:16+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=3399 2017-05-11T22:04:16+08:00 2017-05-11T22:04:16+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3399&p=12992#p12992 <![CDATA[Re: ESP NOT ABLE TO CONNECT TO WIFI : STA DISCONNECT: 201]]>
viewtopic.php?f=66&t=4245

My code is attached therein, so you can use it as your testbed.

The problem with connection happens when RF connection is unstable.
The initial connection is typically smooth.
After RF connection is lost first time:
- following reconnect attempts become slower (connection timeouts, maybe?)
- in some cases esp8266 client never reconnects again

The AP has nothing to do with it:
- it accepts other connections with no problem
- if rebooted, esp8266 can connect to AP again

All these issues - reconnect failures, memory leaks, CPU crashes - could be parts of the same problem.
A race condition in esp8266 connection state machine, for example?

Note: all these problem do not occur to me if RF signal is always (!) strong.

Statistics: Posted by ememberus — Thu May 11, 2017 10:04 pm


]]>
2017-05-10T16:04:53+08:00 2017-05-10T16:04:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3399&p=12945#p12945 <![CDATA[Re: ESP NOT ABLE TO CONNECT TO WIFI : STA DISCONNECT: 201]]>

Statistics: Posted by esp-link32 — Wed May 10, 2017 4:04 pm


]]>
2017-03-24T16:59:10+08:00 2017-03-24T16:59:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3399&p=11563#p11563 <![CDATA[Re: ESP NOT ABLE TO CONNECT TO WIFI : STA DISCONNECT: 201]]>

Code:

REASON_NO_AP_FOUND              = 201

Can other device connect to the AP when ESP CANNOT?

Statistics: Posted by Her Mary — Fri Mar 24, 2017 4:59 pm


]]>
2017-03-06T01:10:39+08:00 2017-03-06T01:10:39+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3399&p=11429#p11429 <![CDATA[ESP NOT ABLE TO CONNECT TO WIFI : STA DISCONNECT: 201]]> I dont think there is anything wrong with the ESP as I have experienced this with multiple ESPs. They would all work fine if I put them onto a circuit I have wired on the breadboard though.

Debug messages:
.wifi evt: 1
STA disconnect: 2
....wifi evt: 1
STA disconnect: 201
.......wifi evt: 1
STA disconnect: 2
......wifi evt: 1
STA disconnect: 2
....wifi evt: 1
STA disconnect: 201
.......wifi evt: 1
STA disconnect: 2
......wifi evt: 1
STA disconnect: 2
....wifi evt: 1
STA disconnect: 201
.......wifi evt: 1
STA disconnect: 2
......wifi evt: 1
STA disconnect: 2
....wifi evt: 1
STA disconnect: 201
.......wifi evt: 1
STA disconnect: 2
......wifi evt: 1
STA disconnect: 2
....wifi evt: 1
STA disconnect: 201
.......wifi evt: 1
STA disconnect: 2
......wifi evt: 1
STA disconnect: 2
....wifi evt: 1
STA disconnect: 201
.......wifi evt: 1
STA disconnect: 2
......wifi evt: 1
STA disconnect: 2

Statistics: Posted by vks007 — Mon Mar 06, 2017 1:10 am


]]>