Home  Contents

v4kf:chipRead

V4kf Core4 Lua Event System

SYNOPSIS

rdrhandle:chipRead(address, length)

DESCRIPTION

Read length bytes of data from the chip card at address address.

The chip card must have been enabled by calling v4kf:chipEnable before it can be read.

This command can only be used if the reader is in the Locked state, which ensures that the chip contact is engaged and stays so for the whole operation.

While this state processes, the reader is in the Processing state and v4kf:isProcessing() returns true. The reader returns to the Locked state on completion.

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

The processing result is provided with the v4kf.processingComplete() callback.

RETURN VALUE

Returns true if the command was accepted, false if not.

SEE ALSO