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