Continuing the discussion from Libary for Windows IoT?:
I’m stuck - no success.
I can not use your code or use the blinkstick outside your example project.
I even tried to rebuild your code in my favorite language vb.net. But it doesn’t matter if I add the BlinkstickUniversal Sample project to a new project or if I rewrite the code by myself.
I still can find the connected Blinkstick and get the same deviceID that is used within your sample project:
Dim selector As [String] = HidDevice.GetDeviceSelector(&HFF00, &H1, VendorId, ProductId)
Dim deviceInformationList = Await DeviceInformation.FindAllAsync(selector)
But if I try to connect to the Blinkstick with
Dim theDevice As HidDevice
theDevice = Await HidDevice.FromIdAsync(DeviceID, Windows.Storage.FileAccessMode.ReadWrite)
theDevice is null.
DeviceID is \?\HID#VID_20A0&PID_41E5#6&2413d1cd&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
As there is no error result or code I can’t find out why.
What drives me crazy is, that the BlinkStickUniversal Test Project runs without any problems. So it can’t be a hardware or connection problem.
You can find my short test Application attached. Maybe there is somebody who can take a look and can give me a hint what is going wrong?
I guess that mybe a driver / compiler / project / reference setting is missing or wrong.
Frank
BSTest4.zip (928.6 KB)
Sorry for opening up a new topic. I used the wrong link. So if someone moves this topic into the Library for IoT thread, thanks in advance