Home  Contents

rawio:reset

Rawio Core4 Lua Event System

SYNOPSIS

handle:reset()

DESCRIPTION

Sends a reset command to an USB printer.

Some printer models take this literally and perform a complete cold reset. This looks to the Core4 system as if the USB plug has been pulled and plugged back it. The handle becomes unusable after this. You must close the handle and open the printer device again. Note that it may take a few seconds before the device reappears and can be opened.

RETURN VALUE

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

SEE ALSO