Open FourLeafTec opened 4 months ago
I was checking to use different serial port library but didn't find any multi-platform serial library better than libserialport. I don't have much experience in multiplatform development especially on Android, so I let you making the "right" choice ;)
Android support will be so much useful
I'm not an Android expert but, I'm trying to guess: isn't it a "permissions" issue? What if you set the right permissions to your Android app?
Permissions are indeed required, but I suspect that there is more to the issue than just permissions. At this point, it seems like the API may also be a problem, and it may be necessary to use the Java API
to enumerate serial ports.
Data transform should be possible using libserial
or other Native API lib
, but I haven't had a chance to try it yet. I will need some free time in the next few days to investigate further.
I've published new https://pub.dev/packages/modbus_client_serial_android package. I did not test it anyhow since I have no serial devices I can connect to an Android phone. So please let me know if this package works fine. Thanks to FourLeafTec
This might not be an issue for this repository, but I think we can discuss it.
Now modebus_client_serial should not be able to support the new general Android platform.
Because of flutter_libserialport#76,libserialport#38 and Android doc .
I think I will add Android support next. I prefer to do this on this package.
So what should I pay attention to if I do this in this package? And when adding Android platform support, would you prefer to completely replace a new serial support library or add a package specifically for Android?
@cabbi