Last active
December 15, 2018 15:35
-
-
Save iotguider/37c20094e78974d86c8b9ddc46324027 to your computer and use it in GitHub Desktop.
Code of ESP8266 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
#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