getTimeout() returns the current timeout value, in milliseconds, set by setTimeout(). The default timeout value is 1000 ms.
This function is part of the Stream class, and can be called by any class that inherits from it (Wire, Serial, etc). See the Stream class main page for more information.
stream.getTimeout()
None.
The timeout value in milliseconds. Data type: unsigned long.