Serial Communication with Esp

I’m trying to communicate with esp8266 through Arduino Uno.But didn’t manage it.Could you help me about it? Here is my codes.

#include <SoftwareSerial.h>

SoftwareSerial ser(2,3); // RX, TX

void setup() {

Serial.begin(9600);

ser.begin(9600);

ser.print(“AT+RST”);
}

void loop() {

Serial.println(“from ARD UNO”);
delay(500);
ser.print(“from ESP”);
delay(500);
}

output is like as most of you suppose

from ARD UNO
from ARD UNO
from ARD UNO
from ARD UNO
from ARD UNO
from ARD UNO
from ARD UNO
from ARD UNO

The program is working exactly as expected.

If you want to receive a response from the ESP8826, you will need to add some code to do so.

Look up "arduino serial input basics".

I’ve found a way to communicate with ESP through Arduino board.

Here is the code what I succeed in it.

#include <SoftwareSerial.h>
SoftwareSerial wifi(2,3); //Rx, Tx

void setup() {
  Serial.begin(9600);
  Serial.println("WIfi Started");
  wifi.begin(9600);
}
void loop() {
  if(Serial.available() > 0){
    byte b = Serial.read();
    wifi.write(b);
  }
  
  if(wifi.available() > 0){
    byte b = wifi.read();
    Serial.write(b);
  }
}

So, mods can delete or close topic.