NurApiTagGetAccessPassword Method
Get Access password of tag
Namespace: NurApiDotNetAssembly: NordicID.NurApi.Net (in NordicID.NurApi.Net.dll) Version: 4.0.0
public uint GetAccessPassword(
uint passwd,
bool secured
)
- passwd UInt32
- Current access password
- secured Boolean
- Set true if secured
UInt32Access password
A tag's ('aTag') password memory has been locked with password 0xA5A5FEFE.
Here's how to check that the locking was OK by reading the access password back :
bool CheckThisPassword(NurApi.Tag aTag, uint accessPwd)
{
uint accessPwd = 0xA5A5FEFE;
try
{
// The value needs not to be checked; a successfule access will tell that it is OK.
aTag.GetAccessPassword(accessPwd, true);
return true;
}
catch { /* More error handling here if necessary. */ }
return false;
}