readUntil
readUntil(delimiter: Binary; maxLength: Integer): Binary;
The readUntil method of the JadeSerialPort class reads binary data from the connection and returns when the delimiter specified in the delimiter parameter is found in the data stream. Use this method if you use delimiters as an end-of-message mechanism as part of your communications protocol so that you do not have to read one character at a time and scan or handle your own data buffering.
Use the maxLength parameter to specify a maximum read size if the specified delimiter cannot be found. (A value of zero (0) indicates that there is no maximum read size.)
This method can be called only when the value of the state property inherited from the Connection class is Connected (2). See also the timeout property inherited from the Connection class.
Only one synchronous or asynchronous read operation can be performed at one time on a connection.