porsager / busylight

node library for busylight
49 stars 17 forks source link

Cannot open device #7

Closed abhishektaneja closed 7 years ago

abhishektaneja commented 7 years ago

I'm getting following error

Error: cannot open device with path IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHC1@14/XHC1@14000000/HS05@14200000/BUSYLIGHT@14200000/IOUSBHostInterface@0/IOUSBHostHIDDevice@14200000,0
    at Error (native)
    at new HID (/Users/ataneja/localhost/git/busylight/node_modules/node-hid/nodehid.js:28:14)
    at Busylight.connect (/Users/ataneja/localhost/git/busylight/lib/busylight.js:103:19)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
    at Function.Module.runMain (module.js:577:11)
    at startup (node.js:160:18)
    at node.js:456:3
porsager commented 7 years ago

Hi :) Did you figure out what was wrong?

abhishektaneja commented 7 years ago

Yes, for me it happened because device was busy with another app.

porsager commented 7 years ago

Ah good to know :) Thank you.