{"id":32299742,"url":"https://github.com/jakobkordez/libserialport_plus","last_synced_at":"2026-02-21T08:36:17.063Z","repository":{"id":290016700,"uuid":"973129491","full_name":"jakobkordez/libserialport_plus","owner":"jakobkordez","description":"Flutter libserialport FFI plugin","archived":false,"fork":false,"pushed_at":"2025-10-15T09:13:11.000Z","size":335,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T05:15:55.192Z","etag":null,"topics":["android","ffi","flutter","libserialport","linux","macos","plugin","serial","serialport","sigrok","windows"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/libserialport_plus","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jakobkordez.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-26T10:20:34.000Z","updated_at":"2025-10-15T09:13:14.000Z","dependencies_parsed_at":"2025-04-26T10:51:38.802Z","dependency_job_id":"2957596e-9fdf-451e-bbd8-91ad694a77fd","html_url":"https://github.com/jakobkordez/libserialport_plus","commit_stats":null,"previous_names":["jakobkordez/libserialport_plus"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jakobkordez/libserialport_plus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobkordez%2Flibserialport_plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobkordez%2Flibserialport_plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobkordez%2Flibserialport_plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobkordez%2Flibserialport_plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakobkordez","download_url":"https://codeload.github.com/jakobkordez/libserialport_plus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobkordez%2Flibserialport_plus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29677596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T06:23:40.028Z","status":"ssl_error","status_checked_at":"2026-02-21T06:23:39.222Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","ffi","flutter","libserialport","linux","macos","plugin","serial","serialport","sigrok","windows"],"created_at":"2025-10-23T05:04:08.556Z","updated_at":"2026-02-21T08:36:17.049Z","avatar_url":"https://github.com/jakobkordez.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libserialport_plus\n\nA Flutter wrapper (FFI plugin) for the [libserialport](https://github.com/sigrok/libserialport) library.\n\nThis package provides a simple API for communicating over serial ports.\n\n## Features\n\n- Cross-platform support for Android, iOS, Linux, macOS and Windows.\n- Reading and writing bytes to serial ports.\n- Reading bytes from serial ports in a stream.\n- Getting a list of available serial ports.\n- Getting information about serial ports.\n- Getting and setting serial port settings (baud rate, data bits, parity, stop bits, etc.).\n\n## Usage\n\nAdd `libserialport_plus` as a dependency in your `pubspec.yaml` file.\n\n```bash\nflutter pub add libserialport_plus\n```\n\nImport the package in your Dart code:\n\n```dart\nimport 'package:libserialport_plus/libserialport_plus.dart';\n\n// Get a list of available serial ports\nList\u003cString\u003e ports = SerialPort.getAvailablePorts();\n\n// Create a serial port instance (MUST BE DISPOSED AFTER USE)\nSerialPort port = SerialPort(\"COM3\");\n\n// Get information about the serial port\nSerialPortInfo info = port.getInfo();\n\n// Open the serial port\nport.open(SerialPortMode.readWrite);\n\n// Check if the serial port is open\nbool isOpen = port.isOpen();\n\n// Read bytes from the serial port\nUint8List bytes = port.read(1024);\n\n// Write some bytes to the serial port\nport.write(bytes);\n\n// Close the serial port\nport.close();\n\n// Dispose the serial port\nport.dispose();\n```\n\n### Reader\n\n```dart\n// Create and open a serial port\nSerialPort port = SerialPort(\"COM3\");\nport.open();\n\nSerialPortReader reader = SerialPortReader(port);\n\nreader.stream.listen((Uint8List bytes) {\n  // Do something with the bytes\n});\n\n// After you are done, close the reader\nreader.close();\n```\n\n## macOS\n\nIf creating an app for macOS, serial permissions are required. Enable this by adding the following two lines to `DebugProfile.entitlements` and `Release.entitlements`:\n\n```xml\n\u003ckey\u003ecom.apple.security.device.serial\u003c/key\u003e\n\u003ctrue/\u003e\n```\n\n## Development\n\nTo get started you need to initialize the `libserialport` submodule with:\n\n```bash\ngit submodule update --init --recursive\n```\n\nThe native build systems that are invoked by FFI (and method channel) plugins are:\n\n- For Android: Gradle, which invokes the Android NDK for native builds.\n  - See the documentation in android/build.gradle.\n- For iOS and MacOS: Xcode, via CocoaPods.\n  - See the documentation in ios/libserialport_plus.podspec.\n  - See the documentation in macos/libserialport_plus.podspec.\n- For Linux and Windows: CMake.\n  - See the documentation in linux/CMakeLists.txt.\n  - See the documentation in windows/CMakeLists.txt.\n\n## Binding to native code\n\nTo use the native code, bindings in Dart are needed.\nTo avoid writing these by hand, they are generated from the header file\n(`src/libserialport/libserialport.h`) by `package:ffigen`.\nRegenerate the bindings by running `dart run ffigen --config ffigen.yaml`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobkordez%2Flibserialport_plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakobkordez%2Flibserialport_plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobkordez%2Flibserialport_plus/lists"}