TBlockSerial.Recvstring
TBlockSerial

function Recvstring(Timeout: Integer): string;

Unit
SynaSer

Description
Method waits until data string is received. This string is terminated by
CRLF character. The resulting string is returned without this termination (CR LF). If no data is received within TIMEOUT (in milliseconds)period, LastError is set to 30.

Methods serves for line protocols implementation and uses its own buffers to maximize operation power. Therefore do NOT use this method with other methods for data receiving because of possible data loss. You may only combine this function with RecvBufferEx or RecvTerminated method.

Timeout is defined as maximum time between two bytes of data, not as timeout for all operation!