title |
---|
Serial.setTimeout() |
Serial.setTimeout()
sets the maximum milliseconds to wait for serial data. It defaults to 1000 milliseconds.
Serial.setTimeout()
inherits from the Stream utility class.
Serial.setTimeout(time)
Serial
: serial port object. See the list of available serial ports for each board on the Serial main page.
time
: timeout duration in milliseconds. Allowed data types: long
.
Nothing
-
LANGUAGE stream
-
LANGUAGE stream.setTimeout()