setVMIN method

void setVMIN(
  1. int vmin
)

Sets the termios VMIN settings, respectively, of the underlying tty device. VMIN specifies the minimum number of bytes returned from a blocking read. VTIME specifies the timeout in seconds of a blocking read. When both VMIN and VTIME settings are configured, VTIME acts as an interbyte timeout that restarts on every byte received, and a blocking read will block until either VMIN bytes are read or the VTIME timeout expires after the last byte read. See the termios man page for more information. vmin can be between 0 and 255. vtime can be between 0 and 25.5 seconds, with a resolution of 0.1 seconds.

Implementation

void setVMIN(int vmin) {
  _checkStatus();
  _checkError(_nativeSerialSetVmin(_serialHandle, vmin));
}