Skip to content
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

Add Android support based on usb_serial dart package #89

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AurelienBallier
Copy link

Android support is not working as the underlying lib is relying on system files ("/sys/class/tty") which requires rooted devices.
In order to provide a quick solution, I used usb_serial as the underlying implementation of serial communication for Android.
It works smoothly and avoid redeveloping a solution from scratch, while keeping a single interface for Desktop and Android serial communication development.
There is a drawback, usb_serial only has an asynchronous interface, which requires updating libserialport functions to async, this breaks older software relying on synchronous interfaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant