NurApiTagSetKillPassword Method
Set new kill password to tag. The tag is selected by its EPC contents.
Namespace: NurApiDotNetAssembly: NordicID.NurApi.Net (in NordicID.NurApi.Net.dll) Version: 4.0.0
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
Assuming the tag's password is protected in whole by the access password, here's how to write a new kill password:
// Note: needs to have try-catch.
void WriteNewKillPassword(NurApi.Tag aTag, uint accessPwd, uint newKillPwd)
{
// Can throw NurApiException.
aTag.SetKillPassword(accessPwd, true, newKillPwd);
}