Serial.Read Method

Reads 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.

Syntax

Serial.Read Bytes, [Encoding]


Parameters

Bytes

Integer

Encoding (Optional)

TextEncoding


Use the Encodings object to specify a text encoding.