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():
Tutorials
See Also
※ ARDUINO BUY RECOMMENDATION
Arduino UNO R3 | |
Arduino Starter Kit |
Disclosure: Some links in this section are Amazon affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.
Additionally, some links direct to products from our own brand, DIYables.
Additionally, some links direct to products from our own brand, DIYables.