Compatibility Members for QSerialPort | Qt Serial Port 5.5

- Qt 5.5
- Qt Serial Port
- C++ Classes
- QSerialPort
- Qt 5.5.1 Reference Documentation

# Compatibility Members for QSerialPort

The following members of class QSerialPort are part of the Qt compatibility layer. We advise against using them in new code.

## Public Functions

bool | sendBreak(int duration = 0)

## Member Function Documentation

### bool QSerialPort::sendBreak(int duration = 0)

Sends a continuous stream of zero bits during a specified period of time duration in msec if the terminal is using asynchronous serial data. If successful, returns true; otherwise returns false.

If the duration is zero then zero bits are transmitted by at least 0.25 seconds, but no more than 0.5 seconds.

If the duration is non zero then zero bits are transmitted within a certain period of time depending on the implementation.

Note: The serial port has to be open before trying to send a break duration; otherwise returns false and sets the NotOpenError error code.

See also setBreakEnabled().