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

Cannot read properties of undefined (reading 'transfer') #526

Closed
kuangping-kp opened this issue Jul 20, 2022 · 7 comments
Closed

Cannot read properties of undefined (reading 'transfer') #526

kuangping-kp opened this issue Jul 20, 2022 · 7 comments

Comments

@kuangping-kp
Copy link

这个错误的原因是啥

@thegecko
Copy link
Member

Would you mind outlining your issue in English, please?

@kuangping-kp
Copy link
Author

var inpoint = interface1.endpoints[0] ;Can read the value
var outpoint = interface1.endpoints[1]; The result of outpoint is undefine

@kuangping-kp
Copy link
Author

Can node-USB read keyboard data or write data

@thegecko
Copy link
Member

Can node-USB read keyboard data or write data

Technically yes, but you would have to write a driver for it. For keyboard access, I's recommend using a HID library such as https://github.com/node-hid/node-hid

@kuangping-kp
Copy link
Author

https://github.com/node-hid/node-hid#devices-node-hid-cannot-read

It shows that the keyboard can't read or write.

@kuangping-kp
Copy link
Author

How to write a driver

@thegecko
Copy link
Member

Closing this issue due to inactivity, please create a new issue as required.

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