pisharody
Posts: 2
Joined: Fri Mar 21, 2008 4:31 am
Location: USA

Retrieve characters when Read timesout

Fri Mar 21, 2008 4:36 am

When you do a serial.read("start_token", "end_token", timeout), and no end_token is detected, all the characters collected until the timeout expires are discarded! Is there anyway to retrieve this buffer?


-Mohan

User avatar
johan
GpsGate
Posts: 14947
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Retrieve characters when Read timesout

Fri Mar 21, 2008 11:42 am

Try to call Read() again without start and end pattern.

Regards,
Johan

Franson Support

pisharody
Posts: 2
Joined: Fri Mar 21, 2008 4:31 am
Location: USA

RE: Retrieve characters when Read timesout

Sat Mar 22, 2008 1:55 am

Thanks! That worked.

-Mohan

Return to “SerialTools”