LIbrary methods don't see connected devices
OverchenkoDev opened this issue · 1 comments
OverchenkoDev commented
I tried to get the device in these ways:
HidDevice _myDevice = HidDevices.Enumerate(0581, 0106, 0x0001).FirstOrDefault();
HidDevice _myDevice = HidDevices.GetDevice(@"HID\VID_0581&PID_0106&COL01\6&2B724189&0&0000");
Both methods return null. But I see that the device is connected in the device manager.
I got Pid and Vid from the device properties in manager, they are correct.
I'm using library version 3.2.46 with Visual Studio 2017 on Windows 10 1903 (.NET Framework 4.5).
My device is DYScan wireless barcode scanner with doc station connected to PC like a usb-hid device.
OverchenkoDev commented
Problem solved. I declared my device variable as private static out of my connecting function and it helped me.