Last active
August 29, 2015 10:52
-
-
Save bastisk/f7a1c57e7c989be783a8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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(5, 6); | |
int ready, connected = 0; | |
void setup() { | |
Serial.begin(115200); | |
esp8266.begin(115200); | |
} | |
void loop() { | |
if(esp8266.available()) | |
while(esp8266.available()) | |
{ | |
char c = esp8266.read(); | |
Serial.write(c); | |
} | |
if (Serial.available()) | |
{ | |
while(Serial.available()){ | |
char command =Serial.read(); | |
esp8266.write(command); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment