Skip to content

Instantly share code, notes, and snippets.

@iotguider
Last active December 15, 2018 15:35
Show Gist options
  • Save iotguider/37c20094e78974d86c8b9ddc46324027 to your computer and use it in GitHub Desktop.
Save iotguider/37c20094e78974d86c8b9ddc46324027 to your computer and use it in GitHub Desktop.
Code of ESP8266 for Serial communication between ESP8266 and Arduino
#include<SoftwareSerial.h> //Included SoftwareSerial Library
//Started SoftwareSerial at RX and TX pin of ESP8266/NodeMCU
SoftwareSerial s(3,1);
void setup() {
//Serial S Begin at 9600 Baud
s.begin(9600);
}
void loop() {
//Write '123' to Serial
s.write(123);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment