Cannot Read Write NFC C# using library

0

i have a coursework about nfc read and write, but i'm still new using C# and i found some libraries about nfc c#. one of them from h4kbas which I'm currenly using righ now.

the first thing i try is how to read UID, but it seem work fine

        private void button1_Click(object sender, EventArgs e)
        {
            if (NFC.Connect())
            {
                textBox1.Text = NFC.GetCardUID();
            }
        } 

and then i try making read and write :

Read

        private void button2_Click(object sender, EventArgs e)
        {
            if (NFC.Connect())
            {
                NFC.WriteBlock(textBox2.Text, "5");
                //Close();
            }

        } 

Write

        private void button3_Click(object sender, EventArgs e)
        {
            if (NFC.Connect())
            {
                NFC.ReadBlock("5");

                //Close();
            }
        }

but after i try making a read and write function above, i don't found any error massage but if i try read or write some string data on running process, forced to close and give massage "The program '[10192] WFANFCReadWriteExecute.exe' has exited with code -1 (0xffffffff)." still..., i don't know the problem is on my code or i have to use "AuthBlock" first.

c#
nfc
asked on Stack Overflow Oct 15, 2020 by AlPraMus • edited Oct 15, 2020 by Calculuswhiz

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0