Skip to content

Instantly share code, notes, and snippets.

@iotguider
Created August 22, 2017 16:14
Show Gist options
  • Save iotguider/ba1b3c90c330d9f7011135eae43672e6 to your computer and use it in GitHub Desktop.
Save iotguider/ba1b3c90c330d9f7011135eae43672e6 to your computer and use it in GitHub Desktop.
Code of Arduino for Serial communication between ESP8266 and Arduino
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