I'm using a 3rd party DLL which connects to an RFID reader via ethernet, now I've got this working without issue to an individual RFID reader using the following:
private static readonly CRRU4 myReader = new CRRU4();
I then pass it connection information which includes IP address and different parameters needed.
Now my question is, how would I do this for a number of IP addresses? I need to refer to each reader to read the RFID tags and handle them separately.
I have thought about cycling through each RFID reader, connecting doing a read and then disconnecting but this is not feasible based on time. I'm wanting to provide updates every second, the connection can take 2-3 seconds to complete.
Would multi-threading work for something like this? For each IP spawn a new thread and tell it to handle a specific IP?