Arduino File.setTimeout()

Description

The File.setTimeout() function sets the maximum milliseconds to wait for file data, it defaults to 1000 milliseconds.

The File.setTimeout() function inherits from the Stream utility class.

Syntax

file.setTimeout(time)

Parameter Values

  • file: an instance of a class that inherits from File.
  • time: timeout duration in milliseconds. Allowed data types: long.

Return Values

  • Nothing

Notes and Warnings

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

ARDUINO BUY RECOMMENDATION

Arduino UNO R3
Arduino Starter Kit
Please note: These are Amazon affiliate links. If you buy the components through these links, We will get a commission at no extra cost to you. We appreciate it.

※ OUR MESSAGES