flserial 0.1.2 copy "flserial: ^0.1.2" to clipboard
flserial: ^0.1.2 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.

Supported platforms:

  • Linux
  • Windows
  • Android

Example of usage:

    FlSerial serial = FlSerial();
    serial.openPort("COM3", 9600);
    serial.onSerialData.subscribe(
      (args) {
        if (args != null && args.len > 0) {
          print(serial.readList());
        }
      },
    );

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

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


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

Licensed under MIT

6
likes
0
points
72
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

License

unknown (license)

Dependencies

event, ffi, flutter, path, plugin_platform_interface

More

Packages that depend on flserial