private static ACR122U acr122u = new ACR122U( ); static void Main(string[ ] args) { acr122u.Init(false, 50, 4, 4, 200); // NTAG213 acr122u.CardInserted += Acr122u_CardInserted; acr122u.CardRemoved += Acr122u_CardRemoved; Console.ReadLine( ); } private static void Acr122u_CardInserted(PCSC.ICardReader reader) { Console.WriteLine("NFC tag placed on reader."); Console.WriteLine("Unique ID: " + BitConverter.ToString(acr122u.GetUID(reader)).Replace("-", "")); string data = "Hello World"; Console.WriteLine("Write data to NFC tag: " + data); bool ret = acr122u.WriteData(reader, Encoding.UTF8.GetBytes(data)); Console.WriteLine("Write result: " + (ret ? "Success" : "Failed")); Console.WriteLine("Read data from tag: " + Encoding.UTF8.GetString(acr122u.ReadData(reader))); } private static void Acr122u_CardRemoved() { Console.WriteLine("NFC tag removed."); }