-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi @tcabanski, currently the module supports only one connected device. Could we have a support for multiple? It could be as simple as:
constructor(deviceNo) {
....
....
this.device = this.findDevice(deviceNo);
....
....
}
findDevice(deviceNo) {
var devices = hid.devices(this.vendorId, this.productId);
if (devices !== undefined) {
return devices[deviceNo || 0];
}
}It wouldn't affect existing consumers of the module, but would allow the new ones to select the device. I'd be happy to submit a pull request for this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels