MelbourneDeveloper / Device.Net

A C# cross platform connected device framework
MIT License
620 stars 119 forks source link

Docs don't specify how to set up factory in Linux #211

Closed BryanCrotaz closed 3 years ago

BryanCrotaz commented 3 years ago

https://melbournedeveloper.github.io/Device.Net/articles/EnumeratingConnectedDevices.html

Only gives example for Windows. As the CreateWindowsHidDeviceFactory has the word Windows in it I assume there is an equivalent for Linux, but code completion doesn't discover it.

MelbourneDeveloper commented 3 years ago

@BryanCrotaz this is the extension method for creating LibUsb device factories. This should work on any platform, but the version of LibUsbDotNet has not been tested on all platforms.

BryanCrotaz commented 3 years ago

Can you add this to the documented example?

BryanCrotaz commented 3 years ago

Do I also need to call LibUsbUsbDeviceFactory.Register(); ?

MelbourneDeveloper commented 3 years ago

Do I also need to call LibUsbUsbDeviceFactory.Register();

No