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.
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