Home Contents | # rawio:sendBreak | Rawio | Core4 Lua Event System

## SYNOPSIS

handle:sendBreak(ms)

## DESCRIPTION

Sends a break signal of ms milliseconds length.

A break signal means activating the TxD output of the serial port, hard, for a certain amount of time.

## RETURN VALUE

On success, returns true. On failure, returns nil. In case of an error, the error can be retrieved using rawio:lastError().

## BUGS

The underlying operating system call has only a resolution of 250ms. The passed ms parameter is rounded up accordingly.

## SEE ALSO

rawio:break, rawio:cts, rawio:dcd, rawio:device, rawio:drain, rawio:dsr, rawio:dtr, rawio:fd, rawio:flush, rawio:name, rawio:rng, rawio:rts, rawio:rxcnt, rawio:setDtr, rawio:setRts, rawio:setupComm, rawio:start, rawio:stop, rawio:txcnt