-->
Page 6 of 6

Re: +CWJAP:1 FAIL

PostPosted: Mon Sep 19, 2022 12:58 pm
by rjl_tx
martinayotte, I have to admit, I'm confused. CWMODE=1 is station mode according to my docs, 2 is AP mode. Are my docs wrong?

https://room-15.github.io/blog/2015/03/ ... reference/ Easy AT document

https://cdn.sparkfun.com/datasheets/Wir ... %20Doc.pdf

Re: +CWJAP:1 FAIL

PostPosted: Mon Sep 19, 2022 1:48 pm
by rjl_tx
bitmanrc, try AT+CWDHCP=1,1. I was having same problem as you and saw this in another post. If it works you will get WIFI GOT IP. See below:
T+CWJAP="ATTYYCc5vS","xxxxxx"

WIFI CONNECTED
+CWJAP:1

FAIL
WIFI DISCONNECT
AT+CWDHCP=1,1


OK
AT+CWJAP="ATTYYCc5vS","xxxxxxxx"

WIFI CONNECTED
WIFI GOT IP

OK