Skip to content

Instantly share code, notes, and snippets.

@roboticboyer
Created January 3, 2015 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roboticboyer/c123b8d7035f6c9bc568 to your computer and use it in GitHub Desktop.
Save roboticboyer/c123b8d7035f6c9bc568 to your computer and use it in GitHub Desktop.
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