Access USB & Bluetooth HID devices through Node.js
hidapi
that allows Macs to see devices with multiple usages/usagePages (#348)Now uses libusb/hidapi! This should fix several outstanding issues.
Added support for Electron v7.
Up to Node v12 is supported (Node v13 isn't in node-abi
yet, so prebuild can't make prebuilt binaries for it)
Linux: Add HID.setDriverType(type)
where type can be "libusb"
or "hidraw"
.
All Linux prebuilds have both driver types.
Update to support Node v12 Remove NAN deprecations when building
Update prebuild and bindings to solve Electron/node-abi prebuild issue #293.
Works with Electron v4.0.0 and Node v11.x.
However, prebuilds for Electron v4 had to be removed because prebuild
is generating wrong binaries some how.
Small fixes for Node v11.0 and Electron v4.0.0.
Note: Removed Electron prebuilds for Node v11 & Electron v4 because still getting the error:
dyld: lazy symbol binding failed: Symbol not found
Expected in: flat namespace
Update to support Node v10
In this release:
HID.setDriverType()
support for Linux as it broke prebuilds for everyone (see issue #242)hidraw
driver instead of libusb
(so usagePage works on Linux, for crypto keys mainly). See details belowNOTE for Linux users:
libusb
and hidraw
would be in the file /etc/udev/rules.d/51-blink1.rules
and contain:
SUBSYSTEM=="input", GROUP="input", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", MODE:="666", GROUP="plugdev"
KERNEL=="hidraw*", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", MODE="0666", GROUP="plugdev"
To install the new rules, unplug the HID device and run the command:
sudo udevadm control --reload-rules