Tod Kurt

Results 368 comments of Tod Kurt

`node-hid` is a rather thin wrapper on https://github.com/libusb/hidapi, including `setNonBlocking()`. Whatever `setNonBlocking(true)` is doing that's odd to you is in `hidapi`, not `node-hid`. (But having said that, we are finally...

To remove Electron as a potential issue, can you create a Node.js program that connects to your device in the same way?

That code does not work stand-alone as you need to put `await` inside of an async function. Also `sleep()` is not defined. I made some assumptions about the actual Node.js...

Also does this mean you're not longer getting the error code this issue is titled with and instead the issue is that the process isn't exiting?

Hi, Again that code is just a snippet and not runnable on its own (no `update_label()` nor `get_device()`. But I made a hopefully similar one for a Teensy RawHID here:...

Hi @Newbrict, I think I may have discovered the issue you've been seeing, and why we experience different behavior. I think the situation is: 1. The `device.on('data',...)` event handler is...

Thanks for the confirmation. In `package.json`, if you change your `node-hid` line to be: ``` "node-hid": "github:node-hid/node-hid" ``` then remove `node_modules` and reinstall, you should get the github version. (now...

Hmm right, hidapi is a submodule now. Not sure the nodejs way to do this but if you `cd` into the `node-hid` directory and do `git submodule update --init` it...

No clue. I don't use yarn. I guess I'll publish a new release, but that may have to wait a week or so.