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

## SYNOPSIS

name = handle:device()

## DESCRIPTION

For TTY devices, returns the internal name of the TTY device. This value is only useful for debugging.

For USB printer devices, returns the IEEE 1284 compatible device ID.

## RETURN VALUE

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

## SEE ALSO

rawio:break, rawio:cts, rawio:dcd, 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