This page is also available in 3 other languages

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)

매개변수

time : timeout duration in milliseconds (long).

반환

Nothing

Notes and Warnings

Serial functions that use the timeout value set via Serial.setTimeout():

  • Serial.find()

  • Serial.findUntil()

  • Serial.parseInt()

  • Serial.parseFloat()

  • Serial.readBytes()

  • Serial.readBytesUntil()

  • Serial.readString()

  • Serial.readStringUntil()

더보기