serial_port_flutter
serial_port_flutter copied to clipboard
A Flutter plugin integrated with Android-SerialPort-API
Is there any way we can set the data bits, stop bits or parity?
Now it`s able to use null safety. I changed a lot of things and test in my device and everything is working!
Error: Cannot run with sound null safety, because the following dependencies don't support null safety: - package:serial_port_flutter 2 For solutions, see https://dart.dev/go/unsound-null-safety
For now this package only integrated with Android serial port library [Android-SerialPort-API](https://github.com/licheedev/Android-SerialPort-API) To support desktop app, it should be serial port library for desktop OS or Dart version serial port...
[ ] Update Android-SerialPort-API to v2.0.0 [ ] Implement and link new functions added by Android-SerialPort-API (eg. parity, stopbits ... params)
Does not support multiple serial ports working at the same time(Because of the singleton pattern?)
Serial serialPortA = await FlutterSerialPort.createSerialPort( Device("deviceNameA", "/your/device/path"), 9600); Serial serialPortB = await FlutterSerialPort.createSerialPort( Device("deviceNameB", "/your/device/path"), 115200); bool openResultA = await serialPortA.open(); print(serialPortA.isConnected) // true bool openResultB = await serialPortB.open(); print(serialPortB.isConnected)...