bool PollTagInfo(string)

Asynchronously polls an RFID device for a tag ID and returns the result via the OnKioIdStorageTagIdInfo callback.

Security

Trust Level Required: High Trust

Parameters

Name Description
deviceName (Optional) string
The name of the device to perform an operation on.

Return

If true, a poll command was successfully queued. Otherwise, false.

Remarks

This function runs asynchronously, and fires the OnKioIdStorageTagIdInfo callback after the tag read has completed. The event fires regardless of whether a tag is present at the time of the UID Read operation.

Examples


if (!KioIdStorageTagDevice.PollTagInfo())
     alert('Failed to queue command!');

function OnKioIdStorageTagIdInfo(devName, tagInfo) {
	KioApp.LogDiag(JSON.stringify(tagInfo));
}

Requirements

KioWare for Windows version 8.16 or greater.