public static string GetTagErrorName(bool tagSentError, int errorCode)
{
if (tagSentError)
{
switch ((ISO_18000_6C_TagErrors)errorCode)
{
case ISO_18000_6C_TagErrors.GeneralError:
//return "general";
return "0x00";
case ISO_18000_6C_TagErrors.LocationError:
//return "location";
return "0x03";
case ISO_18000_6C_TagErrors.LockedError:
//return "locked";
return "0x04";
case ISO_18000_6C_TagErrors.PowerError:
//return "power";
return "0x0B";
case ISO_18000_6C_TagErrors.ErrorNotSupported:
//return "n/a";
return "0x0F";
default:
return String.Format("err 0x{0:x}", errorCode);
}
}
else
{
return "none";
}
}