Hey, very nice sketch, thanks! Please, could you post a photo or a scheme of connection? I have the same setup and i can't make it work(
GolamMostafa:
My NANO (Sender) and ESP8266 (Receiver) are exchanging data very well using SUART Ports: (3, 4) and (D3, D4). The connections are direct as the ESP pins are practically 5V tolerant.NANO Codes:
#include<SoftwareSerial.h>
SoftwareSerial SUART(3, 4); //SRX = DPin-3, STX = DPin-4
void setup()
{
Serial.begin(9600);
SUART.begin(9600);
Serial.print(" ");
}
void loop()
{
SUART.print('A');
byte n = SUART.available();
if (n != 0)
{
char x = SUART.read();
Serial.println(x);
}
delay(1000);
}
**ESP8266 codes:**
#include<SoftwareSerial.h>
SoftwareSerial SUART(D3, D4); //SRX = D3, STX = D4
void setup()
{
Serial.begin(115200);
SUART.begin(9600);
}
void loop()
{
SUART.print('B');
byte n = SUART.available();
if (n != 0)
{
char x = SUART.read();
Serial.println(x);
}
delay(1000);
}
**Screen shot: NANO**  **Screen shot: ESP8266** 