B4R Question Wemos & rSoftwareSerial

atiaust

Active Member
Licensed User
Longtime User
Hi all,
I am using a Wemos as a wifi server communicating with an android tablet. The tablet sends commands to the wemos to switch leds, relays etc..
I also need to communicate via RS232 from the wemos to a cnc controller. I have built a Max3232 TTL to RS232 converter.
If I use rSoftwareSerial to connect to the Max3232 how do I know if the data that is recieved in the buffer is from the wifi connection or the rSoftwareSerial port?
Thanks
 
Top