Closed jyashi closed 2 years ago
Could you try https://github.com/woodemi/quick_usb?
Thank you. I tried running.. i got the following error.. i need to take extra measures on my PC ?
Flutter doctor -v
Apparently the structs.g.dart file does not exist.
Does it not come included with the quick_usb package?
- I can see an example folder in the github page but the use of it causes errors from listDeviceProducts.dart
Does example/listdevs.list
work?
Thank you. I tried running.. i got the following error.. i need to take extra measures on my PC ?
Something wrong inside win32
package, which quick_usb
depends on
Apparently the structs.g.dart file does not exist.
Does it not come included with the quick_usb package?
structs.g.dart
is inside win32
: https://github.com/timsneath/win32/blob/main/lib/src/structs.g.dart
Okay... adding Win32 to dependencies and import 'package:win32/win32.dart';
runs the example fine. I will keep digging for the rest and get back here if any problem comes.
Re-check quick_usb
and libusb
, neither depends on win32
Maybe it is your project depedency?
- I cannot see an example section in the packages https://pub.dev/packages/libusb
Fix by https://github.com/woodemi/libusb.dart/commit/9807b5ce0c635153035039eb6c1600db131359a4
Thank you for the package.
Sorry but I cannot see a straightforward way to using it.
I just want to import the library on windows platform and use its provided functions to access usb device and send data to it. Will there be a step by step guide in getting this done?
Again thank you for your work and apologies if the solution was obvious but i could not pick up on it.