google/gousb

Feature Request

bsakweson opened this issue · 3 comments

UBS plugged and unplugged events:

I am unable to locate plugged and unplugged events in this package. It would be nice to know if a usb device is plugged or unplugged so that implementors can better manage reconnection when an unplugged device is later plugged-in.

I looked through the code but could hardly find anything close to that, is it there and I am just missing it? If not, is this something that could be implemented?

The package doesn't support hotplug at all at this point. There is some work done towards supporting hotplug in #32, but it's unfinished and didn't see any updates for a long time now. It's something that could be implemented if you'd like to work on it.

This issue is a duplicate of #8 and should be closed as such.

Indeed.