usb-relay-hid icon indicating copy to clipboard operation
usb-relay-hid copied to clipboard

Resolve issue with usb_relay_device_open_with_serial_number (orig. lib)

Open pavel-a opened this issue 10 years ago • 0 comments

I don't understand what this function should return: the low -level handle or struct usb_relay_device_info *. If the former, how to get the info (number of relays, etc.) from this handle.

Currently in my lib the handle is same as usb_relay_device_info * but this may change later? I'd like this f() to publicly return the struct ptr, or add another f() because I need to know at least the number of relays.

In original package the command util uses only usb_relay_device_open_with_serial_number and the GUI uses only usb_relay_device_enumerate and usb_relay_device_open.

pavel-a avatar Jan 17 '15 00:01 pavel-a