Serial.Read

From Xojo Documentation

Method

Serial.Read(Count as Integer[,Enc as TextEncoding]) As String

Supported for all project types and targets.

Reads Count bytes of data from the buffer and returns them as a string.

The optional Encoding parameter enables you to specify the text encoding of the data to be read. Use the Encodings module to specify a text encoding.