Ejemplo n.º 1
0
        private void bEpcKill_Click(object sender, EventArgs e)
        {
            int status = 0;

            byte[] value = new byte[16];

            string s = "";

            if (tEpcAccess.TextLength != 8)
            {
                lInfo.Items.Add("Access Password length not enough");
                return;
            }
            uint unAccPwd;

            unAccPwd = Convert.ToUInt32(tEpcAccess.Text, 16);
            status   = Api.Gen2KillTag(unAccPwd);
            if (status != 0)
            {
                lInfo.Items.Add("Set Password failed!");
                return;
            }
            else
            {
                lInfo.Items.Add("Set Password success!");
                lInfo.Items.Add(s);
            }
        }