ESP8266 AT question

An area to discuss AVR and Arduino specific problems and examples

Moderator: Benj

Pactor
Posts: 49
Joined: Sat Apr 11, 2015 12:07 pm
Has thanked: 15 times
Been thanked: 9 times
Contact:

ESP8266 AT question

Postby Pactor » Wed Oct 02, 2019 9:02 pm

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.42 KiB) Viewed 473 times

User avatar
Benj
Matrix Staff
Posts: 14461
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4524 times
Been thanked: 4194 times
Contact:

Re: ESP8266 AT question

Postby Benj » Mon Oct 07, 2019 5:19 pm

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.
These users thanked the author Benj for the post:
Pactor (Tue Oct 08, 2019 1:33 am)
Rating: 5.26%