Serial communication between ESP8266 and uC
Posted: Tue Nov 01, 2016 1:40 pm
Hello everyone,
I'm trying to do a serial communication between the ESP8266 and microcontroller pic.
Well send an ESP of character for the pic I already got the pic triggers a pin receives, then immediately sends a character "c" and I do not know how to take this character in ESP and make a decision.
See my sample code, I put a serialbranch to direct when something coming but does not direct, it does not print on the screen the test I did.
Help me please.
I'm trying to do a serial communication between the ESP8266 and microcontroller pic.
Well send an ESP of character for the pic I already got the pic triggers a pin receives, then immediately sends a character "c" and I do not know how to take this character in ESP and make a decision.
See my sample code, I put a serialbranch to direct when something coming but does not direct, it does not print on the screen the test I did.
Help me please.
Code: Select all
cls
var = ""
baudrate (1200)
button "send1", [send1]
button "end", [end]
serialbranch [change]
wait
[change]
print "received"
wait
[send1]
serialprint (a)
io(po,2,0)
delay 100
io(po,2,1)
wait
[end]
end