Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to read/write to a device without claiming it #1

Open
uditagarwal97 opened this issue Mar 13, 2017 · 1 comment
Open

how to read/write to a device without claiming it #1

uditagarwal97 opened this issue Mar 13, 2017 · 1 comment

Comments

@uditagarwal97
Copy link

I was receiving an error while calling out interface.claim() on osx.so i was looking for any other way of doing the same.I had a look at your code, but was unable to find out how it worked.so, can you please explain it a bit?
Thanx

@tristil
Copy link
Owner

tristil commented Mar 15, 2017

Hi, it's been a long time since I've tried using this code but the main thing was that I didn't claim the interface. The idea I guess is that the operating system claims it automatically as a HID device so all you need to do is start using it. But it does look like I had to detach it if it was already being used. I think this was when you ran it a second time though. Take a look here: https://github.com/tristil/usb-rocket-launcher-node/blob/master/launcher.js#L119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants