Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ESP_Echo
#include <SoftwareSerial.h>
SoftwareSerial esp8266(9, 10); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(9600);
esp8266.begin(9600);
}
void loop() // run over and over
{
while (esp8266.available()>0 )
Serial.write(esp8266.read());
while (Serial.available()>0 ){
esp8266.write(Serial.read());
delay(100);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.