#include <SoftwareSerial.h>
SoftwareSerial serial(2,3);
void setup()
{
Serial.begin(115200);
serial.begin(115200);
serial.println("AT\r\n");
if(serial.available() >0)
{
Serial.println(serial.read());
}
else
{
Serial.println("Nothing in serial buffer.");
}
}
void loop()
{
}
It returns "Nothing in serial buffer." . The ESP still responds to AT commands from Serial montior.