Home Contents | # v4kf:chipPin | V4kf | Core4 Lua Event System

## SYNOPSIS

#include <lua/v4kf.lh>
rdrhandle:chipPin(pin [, settries])

## DESCRIPTION

Authenticate to a memory chip card with pin. Supported chip types are SLE4428 and SLE4442.

The optional argument settries will be written to the error counter after a successful authentication. For the SLE4428, the allowed range is 1...7, while for the SLE4442 it is 1...3. If the argument is not provided, the card will be restored to the maximum number of tries after a successful authentication.

This command can only be used if the reader is in the Locked state, which secures the chip card against removal during 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

v4kf:chipDisable, v4kf:chipEnable, v4kf:chipRead, v4kf:chipWrite, v4kf:chipActivate, v4kf:state