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.
Hi @tcabanski, currently the module supports only one connected device. Could we have a support for multiple? It could be as simple as:
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.