NurApiTagSetKillPassword Method

Set new kill password to tag. The tag is selected by its EPC contents.

Definition

Namespace: NurApiDotNet
Assembly: NordicID.NurApi.Net (in NordicID.NurApi.Net.dll) Version: 4.0.0
C#
public void SetKillPassword(
	uint passwd,
	bool secured,
	uint newPasswd
)

Parameters

passwd  UInt32
Current access password
secured  Boolean
Set true if secured
newPasswd  UInt32
New kill password

Example

Assuming the tag's password is protected in whole by the access password, here's how to write a new kill password:

C#
// Note: needs to have try-catch.
void WriteNewKillPassword(NurApi.Tag aTag, uint accessPwd, uint newKillPwd)
{
    // Can throw NurApiException.
    aTag.SetKillPassword(accessPwd, true, newKillPwd);
}

See Also