You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am struggling with getting the correct configuration after opening the usbDevice.
How do I know how many configurations there are - and which one the correct one is ?
How do I know how many interfaces there are - and which one does have in- and out-endpoints ?
int configNr = 1; // Q1: how do I know this number ?
await _usbDevice?.open();
_usbDevice?.selectConfiguration(configNr);
_configuration = _usbDevice?.configuration;
int interfaceNr = 1; // Q2: how do I know this number ?
_interface = _configuration?.interfaces[n];
await _usbDevice?.claimInterface(_interface!.interfaceNumber);
The text was updated successfully, but these errors were encountered:
I am struggling with getting the correct configuration after opening the usbDevice.
How do I know how many configurations there are - and which one the correct one is ?
How do I know how many interfaces there are - and which one does have in- and out-endpoints ?
The text was updated successfully, but these errors were encountered: