Guest User

Untitled

a guest
Jan 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. S Co:1:074:0 s 02 01 0000 0081 0000 0
  2. C Co:1:074:0 0 0
  3. S Co:1:074:0 s 02 01 0000 0002 0000 0
  4. C Co:1:074:0 0 0
  5.  
  6. S Co:1:074:0 s 02 01 0081 0000 0000 0
  7.  
  8. Uncaught (in promise) DOMException: The specified endpoint number is out of range.
  9.  
  10. navigator.usb.requestDevice({ filters: [{ vendorId: 0x1083}] })
  11. .then(selectedDevice => {
  12. device = selectedDevice;
  13. return device.open(); // Begin a session.
  14. })
  15. .then(() => device.selectConfiguration(1))
  16. .then(() => device.claimInterface(0))
  17. .then(() => device.controlTransferOut({
  18. requestType: 'standard',
  19. recipient: 'endpoint',
  20. request: 0x00,
  21. value: 129,
  22. index: 0x00}))
Add Comment
Please, Sign In to add comment