Unexpected error code after AT+CWJAP_CUR with an incorrect password.

yamazaki
Posts: 6
Joined: Mon Nov 14, 2016 4:27 pm

Unexpected error code after AT+CWJAP_CUR with an incorrect password.

Postby yamazaki » Mon Nov 14, 2016 5:17 pm

Hi,

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!

ESP_Xutao
Posts: 134
Joined: Tue Sep 27, 2016 5:42 pm

Re: Unexpected error code after AT+CWJAP_CUR with an incorrect password.

Postby ESP_Xutao » Mon Dec 05, 2016 5:23 pm

Hi:
Before you conifg wifi(AT+CWJAP),you can user AT+CWMODE=1 or AT+CWMODE=3.Module wifi mode is station.

yamazaki
Posts: 6
Joined: Mon Nov 14, 2016 4:27 pm

Re: Unexpected error code after AT+CWJAP_CUR with an incorrect password.

Postby yamazaki » Tue Dec 06, 2016 7:01 pm

Hi Xutao-san,

Thank you for the comment.
But I always send "AT+CWMODE=1" before "AT+CWJAP_CUR" as you described.

Who is online

Users browsing this forum: No registered users and 2 guests