Home  Contents

v4kf:init

V4kf Core4 Lua Event System

SYNOPSIS

rdrhandle:init()

DESCRIPTION

Initialize the card reader. When a reader handler is freshly created, the v4kf:init() must be given as the first command before the reader can be used.

This command can always be issued and will abort any other state that the reader might be in.

Initialization may take several seconds to complete, during which the shutter clicks a few times.

When this state completes successfully, the reader enters the Closed state if it is empty, or the Ejecting state if there is a card inside.

The command returns immediately. Actual execution of any reader operation is done within the event loop.

SEE ALSO