Stream class
setTimeout()
setTimeout()
sets the maximum milliseconds to wait for stream data, it defaults to 1000 milliseconds.
// PROTOTYPE
void setTimeout(system_tick_t timeout);
// SYNTAX
stream.setTimeout(time);
Parameters:
- stream: an instance of a class that inherits from Stream
- time: timeout duration in milliseconds (unsigned int)
Returns: None