Apparence-io / webUSB_plugin

A flutter webusb plugin
https://pub.dev/packages/usb_device
23 stars 13 forks source link

Endpoint Issue #1

Closed Sandarudx closed 2 years ago

Sandarudx commented 2 years ago

Gets this error when trying to pass in the endpoint number into the function transferIn()

Uncaught (in promise) Error: IndexSizeError: The specified endpoint number is out of range.

at Object.createErrorWithStack (errors.dart:284)
at Object._rethrow (async_patch.dart:200)
at async._AsyncCallbackEntry.new.callback (zone.dart:1413)
at Object._microtaskLoop (schedule_microtask.dart:40)
at _startMicrotaskLoop (schedule_microtask.dart:49)
at async_patch.dart:166

issue

g-apparence commented 2 years ago

Hi, thank you reporting it. Did you found a solution or can post a short reproducing gist?

v-apparence commented 2 years ago

Hi, I think you need to select a configuration and claim interface (with method claimInterface) before using it. You can see all configurations via getAvailableConfigurations(pairedDevice) and selected configuration via getSelectedConfiguration(pairedDevice) 👍

Capture d’écran 2021-12-20 à 09 13 37
g-apparence commented 2 years ago

Closed for inactivity. feel free to open another issue if required