Skip to content

( C# class ) With this class you can easily interface your application with RFID card reading devices between Serial and TCPIP connection.

License

Notifications You must be signed in to change notification settings

angeloLed/DispositiveConnector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

DispositiveConnector (Beta)

( C# class ) With this class you can easily interface your application with RFID card reading devices between Serial and TCPIP connection.

Example Usage

Include DispositiveConnector.cs library in your project and istantiate dispositive like:

public static List<DispositiveConnector> devices = new List<DispositiveConnector>();

Define method for read card:

public void onCodeReaded(string cardCode, int deviceID)
{
  base.Invoke((Action)delegate
  {
     MessageBox.Show(cardCode);
  });
}

Add some device:

devices.Add(new DispositiveConnector(DispositiveType.Tr515, DispositiveConnection.TcpIp));
devices[0].ipv4 = "10.0.0.125"; //Some ip
devices[0].CodeReaded += onCodeReaded;

devices.Add(new DispositiveConnector(DispositiveType.GP30, DispositiveConnection.Serial));
devices[1].comPort.PortName = "COM10"; //some port
devices[1].CodeReaded += onCodeReaded;

Open connections:

foreach (DispositiveConnector device in devices) {
  device.ConnectionOpen();
}

And now test cardRead with one card.

About

( C# class ) With this class you can easily interface your application with RFID card reading devices between Serial and TCPIP connection.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages