Created
August 22, 2017 16:14
-
-
Save iotguider/ba1b3c90c330d9f7011135eae43672e6 to your computer and use it in GitHub Desktop.
Code of Arduino for Serial communication between ESP8266 and Arduino
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
int data; //Initialized variable to store recieved data | |
void setup() { | |
//Serial Begin at 9600 Baud | |
Serial.begin(9600); | |
} | |
void loop() { | |
data = Serial.read(); //Read the serial data and store it | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment