-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example on Ubuntu 22.10 throws errno = 22
#68
Comments
errno = 22
errno = 22
When skimming through old issues, I saw the trick with
|
@Schwusch did you find a fix or workaround for this error? Facing the problem here. |
@mateen-demah I did port the Golang serial library function for getting a more valid list of ports, but abandoned that code in favour of just filtering on vendor/product ID. |
@Schwusch how did you do that? From the example app, you'd have create a SerialPort object to get access to the vendor/product ID. And the error occurs at the point of SerialPort object creation. |
My use case was to present the user with a list of available ports to choose from, and that is possible without instantiating a |
Also, you can read the vid/pid from the file system |
Thanks @Schwusch I'll try that out. In my case, I don't just want to present the ports so I really need that object. |
Seems like your serial port is not USB type, hence no bus number can be provided. |
Thanks @mingpepe . For my usecase I'm only interested in USB devices so I put a try block around the port creation code and just skipped when something went wrong. Worked like a charm; all the USB devices showed up. |
Running the example on Ubuntu 22.10 with Flutter
3.7.0-1.2.pre
gives this error on startup:Running
flutter --version
:The text was updated successfully, but these errors were encountered: