-->
Page 1 of 1

AT CWJAP results in error

PostPosted: Fri Jun 30, 2017 11:32 am
by KDB
With AT+GMR I receive : Version 1.2.0.0. SDK Version 1.5.4.1 von Ai-Thinker Technology
After AT+CWMODE=1 I try connect with AT+CWJAP <ssid>,<password>
Answer of esp8266
WIFI DISCONNECT
+CWJAP:4

Who can help ?
:?: Thanks

Re: AT CWJAP results in error

PostPosted: Fri Jun 30, 2017 5:14 pm
by QuickFix
KDB wrote:I try connect with AT+CWJAP <ssid>,<password>

Did you forget the equals sign (=) between AT+CWJAP and <ssid> perhaps?
Or to enclose the ssid and password between double qoutes (")?

Connecting to an AP is done with:
Code: Select allAT+CWJAP="MyAP","MyPassWord"


Otherwise, try to see if your AP is seen by issuing an AT+CWLAP first. :idea:

Re: AT CWJAP results in error

PostPosted: Sat Jul 01, 2017 3:33 am
by KDB
Sorry, I forgot the = in my post. I wrote in the same way you mentioned. The AP is seen in the list.
Is there anywhere a list of the error codes ?
Did you forget the equals sign (=) between AT+CWJAP and <ssid> perhaps?
Or to enclose the ssid and password between double qoutes (")?

Connecting to an AP is done with:
Code: Select allAT+CWJAP="MyAP","MyPassWord"


Otherwise, try to see if your AP is seen by issuing an AT+CWLAP first. :idea:[/quote]

Re: AT CWJAP results in error

PostPosted: Sat Jul 01, 2017 8:17 am
by QuickFix
Error "4" means "Connection failed", so that doesn't make things any more clear. :?
To what kind of AP (and with what algorithm & encryption method) are you trying to connect?

For quick reference I always use this page.
When I need to consult the complete manual, I have a look at the official Espressif AT-instruction set.