AT+CWJAP has a delay in new version before OK is returned.
In my test I could get IP adress (AT+CIFSR) directly after reading OK.
But I cannot see any confirmation in their docu about that.
Other guys recommend to call AT+CIFSR until you get an IP, and return error if this takes more than 10 secs.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
AT+CWJAP has a delay in new version before OK is returned.
In my test I could get IP adress (AT+CIFSR) directly after reading OK.
But I cannot see any confirmation in their docu about that.
Other guys recommend to call AT+CIFSR until you get an IP, and return error if this takes more than 10 secs.