Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By pino
#80129 Dear all,

I'm testing a basic arduinio esp8266 example, the webserver.
The esp8266 is unable to connect with a tp-link router which offer a wifi with "WPA/WPA2 - Personal",
-but- if I use the same SSID and same passw and encription on another router all works perfectly.

Now: my diagnose is : the router has someone incompatible setup..which one ?
Googling someone has disabled wmm, other has reduced the with to 20Mhz, I tested both without success.

More: looking into the tp-link "Connection Wireless Station Numbers" I can see the mac address of the sonoff which send/receive only three packets (???), but debugging the connection using the arduino serial monitor I have the follow:::

640.Connecting to xxx
Connection status: 6
Mode: STA
PHY mode: N
Channel: 11
AP id: 0
Status: 1
Auto connect: 1
SSID (7): xxx
Passphrase (31): xxx
BSSID set: 0
641.Connecting to xxx
Connection status: 6
Mode: STA
PHY mode: N
Channel: 11
AP id: 0
Status: 1
Auto connect: 1
SSID (7): xxx
Passphrase (31): xxx
BSSID set: 0
state: 5 -> 2 (2a0)
rm 0
642.Connecting to xxx
Connection status: 6
Mode: STA
PHY mode: N
Channel: 11
AP id: 0
Status: 1
Auto connect: 1
SSID (7): xxx
Passphrase (31): xxx
BSSID set: 0
reconnect
state: 2 -> 0 (0)
643.Connecting to xxx
Connection status: 4
Mode: STA
PHY mode: N
Channel: 11
AP id: 0
Status: 4
Auto connect: 1
SSID (7): xxx
Passphrase (31): xxx
BSSID set: 0
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 4
cnt
644.Connecting to xxxx
Connection status: 6
Mode: STA
PHY mode: N
Channel: 11
AP id: 0
Status: 1
Auto connect: 1
SSID (7): PVnet24
Passphrase (31): xxx
BSSID set: 0
645.Connecting to xxxx
Connection status: 6
Mode: STA
PHY mode: N
Channel: 11
AP id: 0
Status: 1
Auto connect: 1
SSID (7): xxxx
Passphrase (31): xxxx
BSSID set: 0

Someone has suggestion to fix this ? If you have a line guide to a correct configuration of a wifi router with wap2-personal, please, point me out.
Thanks.