Home  Contents

Start/Stop

Rawio Core4 Lua Event System

SYNOPSIS

  1. handle:start()
  2. handle:stop()

DESCRIPTION

rawio.start() and rawio.stop() will start/stop transmitting just like a handshaking protocol would.

RETURN VALUE

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

ERRORS

This function works only on TTY devices.

NOTES

These functions do not disable any handshaking that is configured for the device. So if you call rawio:stop(), for example, and the device sees a start trigger on the hardware (e.g. a Xon character), it happily starts up again.

SEE ALSO