Serial.setTimeout()

[Serial]

説明

Serial.setTimeout() sets the maximum milliseconds to wait for serial data when using Serial.readBytesUntil() or Serial.readBytes(). It defaults to 1000 milliseconds.

Serial.setTimeout() inherits from the Stream utility class.

構文

Serial.setTimeout(time)

媒介変数

time : timeout duration in milliseconds (long).

戻り値

None

参照


Language Reference Home

86Duinoリファレンスのテキストは、Arduinoリファレンスを改変したもので、Creative Commons Attribution-ShareAlike 3.0ライセンスに基づいてライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。

上部へスクロール