Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello
I have 4 ZK-rfid101R reader which released with a SDK API for programmers...
I actually need to create a program to connect to 4 of them simultaneously and read data from them bur just with one program.
I need to create a list<> of that api and give which to each reader.
But there is a big problem.the problem is that that api is a static class api which doesn’t let me create generic lists or instances of that...
Please help me what can i do in c#

What I have tried:

List<api>
....................................................
Posted
Updated 7-Sep-20 15:41pm

1 solution

You don't make multiple instances of the API SDK. That's not a thing at all.

How you do this depends on the interface of the device. How do these thing connect to the PC?
 
Share this answer
 
Comments
Mohammad Razmi 7-Sep-20 21:42pm    
More over i have 3 readers from another company that released with a public class API and let me to create generic list of that Api for each ip and port that is connected to the network,so because of that List<api> they are working perfectly and there is no problem with those ones.
They are all connected to the network using a switch/router.
My program works in this way that the user have to just enter a IP address and a port number and the program will try to connect all of the IP/port list entered by user.
Dave Kreskowiak 8-Sep-20 0:05am    
What you're calling the "API" really isn't. It's just a wrapper class that you create an instance of that talks to a specific device.

The same thing may be possible for these devices, but only the documentation on the SDK is going to tell you that.
Mohammad Razmi 8-Sep-20 1:20am    
I just need to connect to reader and read tags,don’t need any other method listed in that static api.
Could you help me with creating a dll which i could just connect to that ZK and read tags?
What do i need in c#?
Sockets class?i’m not that much pro in c# but if you say keywords i would search and find a way
Dave Kreskowiak 8-Sep-20 12:38pm    
I don't really care what previous hardware you've used. You still haven't said how your current devices are connected to the PC.
Mohammad Razmi 8-Sep-20 12:46pm    
they are connected using a router bro
is there any way out of List<> for creating and connecting to that API per each reader?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900