TBlockSerial.RecvTerminated
TBlockSerial
function RecvTerminated(Timeout: Integer; Const Terminator: string): string;
Unit
SynaSer
Description
Method waits until data string is received. This string is terminated by Terminator string. The resulting string is returned without this termination string! 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 RecvString method.
Timeout is defined as maximum time between two bytes of data, not as timeout for all operation!