EnableAutoLogin

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

The EnableAutoLogin function is used to enable automatic login via MiFare Classic Standard RFID card. For this purpose, the LoginWithMiFare function is triggered cyclically. This means that the login does not have to be triggered via an event.

EnableAutoLogin 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

number

ID of the registered interval.

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

Available: from version 12.14.0

Usage: TC3 Plastic Application HMI projects