Skip to content

sgsm74/serialport_plus

Repository files navigation

serialport_plus

A Flutter plugin integrated with Android-SerialPort-API.

This plugin works only for rooted Android devices.

Usage

List devices

  List devices = await SerialportFlutter.listDevices();

List devices path

  List devices = await SerialportFlutter.listDevicesPath();

Open/Close device

bool openResult = await SerialportFlutter.open('/your/device/path', baudrate, dataBits, parity, stopBits);
bool closeResult = await SerialportFlutter.close();

Write data to device

SerialportFlutter.write(Uint8List.fromList("Write some data".codeUnits));

About

Serial Port plugin for Android devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published