ESP8266 Developer Zone The Official ESP8266 Forum 2016-12-06T19:01:48+08:00 https://bbs.espressif.com:443/feed.php?f=16&t=3074 2016-12-06T19:01:48+08:00 2016-12-06T19:01:48+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3074&p=10819#p10819 <![CDATA[Re: Unexpected error code after AT+CWJAP_CUR with an incorrect password.]]>
Thank you for the comment.
But I always send "AT+CWMODE=1" before "AT+CWJAP_CUR" as you described.

Statistics: Posted by yamazaki — Tue Dec 06, 2016 7:01 pm


]]>
2016-12-05T17:23:36+08:00 2016-12-05T17:23:36+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3074&p=10799#p10799 <![CDATA[Re: Unexpected error code after AT+CWJAP_CUR with an incorrect password.]]> Before you conifg wifi(AT+CWJAP),you can user AT+CWMODE=1 or AT+CWMODE=3.Module wifi mode is station.

Statistics: Posted by ESP_Xutao — Mon Dec 05, 2016 5:23 pm


]]>
2016-11-14T17:17:47+08:00 2016-11-14T17:17:47+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3074&p=10521#p10521 <![CDATA[Unexpected error code after AT+CWJAP_CUR with an incorrect password.]]>
Currently I’m testing with NONOS_SDK_V2.0.0 (including patch).
However one difference is observed between 1.5.1 and 2.0.0 as following.

I sent AT+CWJAP_CUR with a correct SID and an incorrect password, but replied error code from esp8266 is “1: connection timeout”.

AT+CWJAP_CUR="APxxx","pass1234"
WIFI DISCONNECT
+CWJAP:1

FAIL


In the same test case with 1.5.1, esp8266 replies Error code “2: wrong password” expectedly.

AT+CWJAP_CUR=" APxxx "," passw1234"
WIFI DISCONNECT
+CWJAP:2

FAIL

Could someone tell me why the difference is observed and also tell me how to avoid the issue?

Thanks in advance for your help!

Statistics: Posted by yamazaki — Mon Nov 14, 2016 5:17 pm


]]>