Sunbreak
Sunbreak
https://github.com/woodemi/libusb.dart is a simple wrapper of https://github.com/libusb/libusb You need to learn about libusb's feature to solve above error
Googled a little. Not sure if https://github.com/libusb/libusb supports Apple Silicon or not May try later home
https://github.com/woodemi/quick.flutter/tree/master/packages/quick_usb#request-permission
AFAIK, `libusb` could not access common HID devices. You could try the differences - https://github.com/woodemi/web_usb.dart - https://github.com/woodemi/web_hid.dart Related: https://github.com/woodemi/quick.flutter/issues/57#issuecomment-1196041325
Could try https://github.com/woodemi/libusb.dart? ``` $ git clone https://github.com/woodemi/libusb.dart $ cd libusb.dart $ flutter pub get $ flutter pub run example/listDeviceProducts.dart ``` Then you could debug the `listDeviceProducts.dart` within VSCode
Tested on Windows 11 - Flutter ``` > %flutter3.0.x% --version Flutter 3.0.5 • channel stable • https://github.com/flutter/flutter Framework • revision f1875d570e (3 weeks ago) • 2022-07-13 11:24:16 -0700 Engine •...
If you mean error of VSCode's code inspection, you should add JSON config into `.vscode\settings.json` ```json { "dart.flutterSdkPath": "C:\\Users\\sunbr\\w\\google\\flutter-3.0.x" } ```
Oh, I see. Since Dart 2.17 `ABI-specific integer types` are moved from `package:ffi` to `dart:ffi` We shoud use `import 'package:dart/ffi' as pkg_ffi` for Flutter 3.0+
Clean cache in `.dart_tool` may help according to https://github.com/woodemi/quick_blue/issues/102#issuecomment-1119171251
Thanks for your report. Does it happen on the old implementation or the new one? - old implementation in https://github.com/woodemi/quick_blue ```cpp SetNotifiableAsync(*it->second, service, characteristic, bleInputProperty); result->Success(nullptr); ``` - new implementation...