Page 1 of 1

Retrieve characters when Read timesout

Posted: Fri Mar 21, 2008 4:36 am
by pisharody
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

RE: Retrieve characters when Read timesout

Posted: Fri Mar 21, 2008 11:42 am
by johan
Try to call Read() again without start and end pattern.

Regards,
Johan

Franson Support

RE: Retrieve characters when Read timesout

Posted: Sat Mar 22, 2008 1:55 am
by pisharody
Thanks! That worked.

-Mohan