0
votes

I'm try to connect my ESP8266 to wifi router using AT+CWJAP but I have a problem cannot read esp8266 response to my arduino.

When I try to send AT to esp from arduino code it can't read OK Response from esp8266 Serial.find("OK") not working. I change the baud rate into 115200 it didn't work too

This is serial capture:

> 14:04:45.882 -> AT 
> 14:04:51.868 -> NOT OK! 
> 14:04:51.901 -> AT+CIPSTART="TCP","184.106.153.149",80 
> 14:04:54.899 -> AT+CIPSEND=55
> 14:04:55.873 -> AT+CIPCLOSE

This is the arduino code:

void setup()
    {
      Serial.begin(9600); //or use default 115200.
      Serial.println("AT");
      delay(5000);
      if(Serial.find("OK")){
        connectWiFi();
      }
      else{
        Serial.println("NOT OK!");
      }
    }

It should run ConnectWiFi() Function but the output is "NOT OK!"

1
So what data does the Arduino receive from the ESP?JimmyB
"OK" response from espChristian Mahardhika
@ChristianMahardhika, Did you manage to resolve this issue?Janaka Pushpakumara

1 Answers

0
votes

Your baudrate is incorrect. It should be 115200.