Arduino Programming Language: Stream.setTimeout

Name

setTimeout()

Description

Sets the maximum milliseconds to wait for stream data, it defaults to 1000 milliseconds.

Syntax

stream.setTimeout(time)

Parameters

  • stream : an instance of a class that inherits from Stream.
  • time : timeout duration in milliseconds (long).

Returns

none 


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc