serialport / serialport-rs

A cross-platform serial port library in Rust. Provides a blocking I/O interface and port enumeration including USB device information.
Other
498 stars 122 forks source link

Serial Port enumeration not supported for android #6

Open jessebraham opened 2 years ago

jessebraham commented 2 years ago

This issue was migrated from GitLab. The original issue can be found here: https://gitlab.com/susurrus/serialport-rs/-/issues/72

In the documentation, android is described as being supported by this library. However, When I try to run my project that imports this code, I get the error:

serialport:available_ports() Error { kind: Unknown, description: "Not implemented for this OS"}

I have tested this on multiple android devices with multiple versions of Android (10, 7.1.2, 8) with the same issue. I have poked around in the source code a bit, and I cannot find the target_os tag for android for the available_ports() function. Is there something I am missing?

aaronisme commented 2 years ago

facing the same issue.