Beispiel #1
0
        protected NFCTag BuildTag(IntPtr Handle, int Proto, NFCReader Reader, byte[] ATR)
        {
            switch (ParseATR(ATR))
            {
            case TagType.MifareUltralightFamily:
                return(new Tags.Ultralight(Handle, Proto, Reader, ATR));

            default:
                return(new Tags.Unknown(Handle, Proto, Reader, ATR));
            }
        }
Beispiel #2
0
        public NFCTag(IntPtr Handle, int Proto, NFCReader Reader, byte[] ATRbytes)
        {
            handle = Handle;
            proto  = Proto;
            reader = Reader;

            // Get Tag ATR
            bATR = ATRbytes;
            ATR  = bATR.BytesToHex();

            // Get Tag UID
            bUID = reader.ParseUID(handle, proto);
            UID  = bUID.BytesToHex();
        }