ESP8266 AT question

An area to discuss AVR and Arduino specific problems and examples

Moderator: Benj

Post Reply
Pactor
Posts: 59
Joined: Sat Apr 11, 2015 12:07 pm
Contact:

ESP8266 AT question

Post by Pactor »

Hello
Just playing around with this module and when you connect to an AP it returns "OK"
But when it fails to connect it returns "+CWJAP:1" but the component seems to accept this as a valid connection also.
Just wondering if its because its seeing the 1 coming back from the module.
Is there anyway of changing the responses that the component expects to see.
I can work around but I had a feeling I had the same problem before and found an easy way to get around it but can't remember what I did.


Wemos Mega +WiFi R3 ATmega2560+ESP8266 USB-TTL CH340G Arduino Mega NodeMCU
Wemos Mega +WiFi R3 ATmega2560+ESP8266 USB-TTL CH340G Arduino Mega NodeMCU.JPG
Wemos Mega +WiFi R3 ATmega2560+ESP8266 USB-TTL CH340G Arduino Mega NodeMCU.JPG (38.41 KiB) Viewed 1278 times

User avatar
Benj
Matrix Staff
Posts: 14929
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: ESP8266 AT question

Post by Benj »

Hello,

I beleive I have fixed this iss e already for v8 but I'll have another look and compare.

Maybe try and collect the IP and if you get a valid address then you should be connected ok.

Post Reply