Table of Contents

Class LicenceKeyCommand

Namespace
TechnologySolutions.Rfid.AsciiProtocol.Commands
Assembly
TechnologySolutions.Rfid.AsciiProtocol.Core.dll

The .lk Licence Key of the Technology Solutions UK Ltd ASCII 2 Protocol

(.lk) This command reads, writes and deletes the Licence Key stored in the reader’s non-volatile memory. The Licence Key can be up to 127 characters long and can contain any printable characters with the exception of double quotes ("). How the licence key function is used is up to the programmer, it could be used to store a simple password or some form of hashing could be used with the two unique strings, the serial number and Bluetooth address, returned from the .vr command.

[AsciiCommand(".lk")]
public class LicenceKeyCommand : AsciiCommandBase, IAsciiCommand
Inheritance
LicenceKeyCommand
Implements
Inherited Members
Extension Methods

Remarks

Added for ASCII Protocol 2.2

Constructors

LicenceKeyCommand()

Initializes a new instance of the LicenceKeyCommand class

public LicenceKeyCommand()

Properties

Delete

Gets or sets a value that when set to yes will erase the current licence key if present

[AsciiParameter("d")]
public Confirmation? Delete { get; set; }

Property Value

Confirmation?

DeleteKey

Gets or sets a value that when set to yes will erase the current licence key if present

[Obsolete("Use the Delete property instead")]
[AsciiParameter("d")]
public Deletion? DeleteKey { get; set; }

Property Value

Deletion?

LicenceKey

Gets or sets the licence key to write to the reader. After the command is executed returns the key read from the reader

[AsciiParameter("s")]
[AsciiResponse("LK")]
public string LicenceKey { get; set; }

Property Value

string

ReadParameters

Gets or sets a value indicating whether the response to the command should report all supported parameters and their current values

[AsciiParameter("p")]
public bool ReadParameters { get; set; }

Property Value

bool