0

SoftwareSerial Flush??
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

SoftwareSerial Flush??

by pd2kplus10 on Fri Feb 06, 2009 1:54 am

Hello all,

I was wondering if there is a way to flush SoftwareSerial.read();

I'm using SoftwareSerial to read data from a Parallax receiver module. It works great, but I would like to know when the receiver is no longer receiving data from the transmitter (ie: TX lost power, or out of range). Right now I have the read function in a loop and the read results are never cleared.

I would just use the hardware serial port on my arduino ... but I'm using that to send data to my computer.



thanks,
Phil
pd2kplus10
 
Posts: 16
Joined: Tue Apr 22, 2008 9:01 am
Location: Hollywood FL

Please be positive and constructive with your questions and comments.