Created
January 3, 2015 07:26
-
-
Save roboticboyer/c123b8d7035f6c9bc568 to your computer and use it in GitHub Desktop.
ESP_Echo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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