Arduino serial to ESP8266
Posted: Wed Jun 21, 2017 3:27 pm
I managed to set up a webserver (websockets) on the ESP8266.
I'd like to read a string from a hardware serial link from an Arduino UNO reading sensors and switches.
It is an "all in one" board with dip switches, ESP, UNO and a CH340. Pins 0 and 1 are designated for rtxt and are free...
My UNO sends a String at 9600 baud. How do I pick it up?
....setup
Serial1.begin(9600);
......loop
if ( Serial1.available() ) { string1 = Serial1.readString() ; }
...
It didn't work. Is it the other Serial? Do I change the Baud on both of them to 115200 on which the ESP comes out of the box?
I'd like to read a string from a hardware serial link from an Arduino UNO reading sensors and switches.
It is an "all in one" board with dip switches, ESP, UNO and a CH340. Pins 0 and 1 are designated for rtxt and are free...
My UNO sends a String at 9600 baud. How do I pick it up?
....setup
Serial1.begin(9600);
......loop
if ( Serial1.available() ) { string1 = Serial1.readString() ; }
...
It didn't work. Is it the other Serial? Do I change the Baud on both of them to 115200 on which the ESP comes out of the box?