flserial 0.3.5 copy "flserial: ^0.3.5" to clipboard
flserial: ^0.3.5 copied to clipboard

Flutter Serial Port Plugin FFI based on great C library. Useful to communicate with RS232 devices.

flserial #

Flutter Serial Port Plugin FFI based on great C library. Useful to communicate with RS232 devices.

Based on great serial library: https://github.com/wjwwood/serial

Supported platforms:

  • Linux
  • Windows
  • Android
  • MacOS

Example of usage:

    FlSerial serial = FlSerial();
    serial.init();
    serial.openPort("COM3", 9600);
    serial.onSerialData.stream.listen(
      (args) {
        if (args.len > 0) {
          print(args.serial.readList());
        }
      },
    );

    serial.setByteSize8();
    serial.setBitParityNone(); 
    serial.setStopBits1();
    serial.setFlowControlNone();

    String msg = "Hello World!";
    var list = msg.codeUnits;
    serial.write(Uint8List.fromList(list));

    serial.closePort();
    serial.free();


License #

MIT License

7
likes
150
points
85
downloads

Publisher

verified publisherglpro.pl

Weekly Downloads

Flutter Serial Port Plugin FFI based on great C library. Useful to communicate with RS232 devices.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ffi, flutter, plugin_platform_interface, test

More

Packages that depend on flserial

Packages that implement flserial