How to send data to USB device in node.js using libusb

一世执手 提交于 2019-11-29 04:27:53

You forgot to call interface.claim().

https://github.com/nonolith/node-usb#claim

The interface should be declared using the term.interface(interfaceId) method, not term.interfaces[0]

https://www.npmjs.com/package/usb#interfaceinterface

Bhoopesh Singh

Use sudo before running your command.

Wrong:

node index.js

Right:

sudo node inex.js
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!