Serial Port for Flutter
flutter_libserialport is a simple wrapper around the libserialport
Dart package, utilizing Flutter's build system to build and deploy the libserialport
C-library under the hood. This package does not provide any additional API, but merely helps to make the libserialport Dart
package work "out of the box" without the need of manually building and deploying the libserialport C-library.
Supported platforms:
- Aurora 4/5
- Linux
- macOS
- Windows
- Android
Usage
To use this package, add flutter_libserialport as a dependency in your pubspec.yaml file.
To read or write to a COM port on the Aurora, you need to grant permission for a port. For example, use
devel-su chmod a+rx /dev/ttyACM0command in the console after plugging in the device.
pubspec.yaml
dependencies:
flutter_libserialport:
git:
url: https://developer.auroraos.ru/flutter/flutter-community-plugins/flutter_libserialport.git
ref: flutter_libserialport-0.4.0-aurora
