LoginWithMiFare

async function LoginWithMiFare(ctx: any, usernameAddress: number, usernameBlockAmount: number, passwordAddress: number, passwordBlockAmount: number, reloadOnLogin: boolean, persistentLogin: boolean, usbConfig: any)

The asynchronous function LoginWithMiFare is used to enable the user to log in with a MiFare Classic Standard card. A corresponding user must be created in TwinCAT HMI Engineering for this (read more). The password and user name must be stored on the card and suitably coded. The WriteMiFareData function should therefore be used to write the card.

LoginWithMiFare 1:

Browser compatibility

The function is only compatible with Google Chrome and Microsoft Edge.

Parameter

Name

Type

Description

ctx

any, Context

Asynchronous context object

usernameAddress

number

Sector in which the block with the user name is located.

usernameBlockAmount

number

Number of blocks to be read.

passwordAddress

number

Sector in which the block with the password is located.

passwordBlockAmount

number

Number of blocks to be read.

reloadOnLogin

boolean

If the value is true, the page is reloaded after login.

persistentLogin

boolean

If the value is true, the user remains logged in even after the browser is closed.

usbConfig

RFIDConfig

Configuration data of the connected serial interface.

Return value

Type

Description

void

No return value.

NuGet package: Beckhoff.TwinCAT.HMI.Plastic.RFID

Available: from version 12.14.0

Usage: TC3 Plastic Application HMI projects