webusb / arduino

WebUSB demos running on Arduino (and compatible) hardware.
566 stars 152 forks source link

"DOMException: The specified interface has not been claimed." when keyboard is used #23

Closed DeqingSun closed 7 years ago

DeqingSun commented 7 years ago

Hi,

I got Arduino working with examples. But when I put

include "Keyboard.h"

in sketch, the interface can not be claimed. I tried to change interface number in serial.js with no luck.

Tested on Mac OS 10.10.5

DeqingSun commented 7 years ago

My bad, all endpoints in transferIn,claimInterface,controlTransferOut,transferOut need to be increased by 1.

reillyeon commented 7 years ago

Good to know what works as I expected it would. I was about to pull out my Arduino to try to reproduce.