All Projects → jpnurmi → libserialport.dart

jpnurmi / libserialport.dart

Licence: other
Serial Port for Dart

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to libserialport.dart

cargo-valgrind
A cargo subcommand, that runs valgrind and displays its output in a helpful manner.
Stars: ✭ 66 (+29.41%)
Mutual labels:  ffi
pySerialTransfer
Python package to transfer data in a fast, reliable, and packetized form
Stars: ✭ 78 (+52.94%)
Mutual labels:  serialport
serialPort
Android通用的串口通信库
Stars: ✭ 39 (-23.53%)
Mutual labels:  serialport
PInvokeSerialPort
P/Invoke wrapper for Win32API serial port
Stars: ✭ 30 (-41.18%)
Mutual labels:  serialport
windigo
Windows API and GUI in idiomatic Go.
Stars: ✭ 187 (+266.67%)
Mutual labels:  ffi
php-rdkafka-ffi
PHP Kafka client - binding librdkafka via FFI
Stars: ✭ 49 (-3.92%)
Mutual labels:  ffi
SerialTest
Serial port test tool on Win/Linux/Android, with realtime plotting, shortcut | 跨平台串口助手,带实时绘图和快捷发送面板
Stars: ✭ 98 (+92.16%)
Mutual labels:  serialport
purescript-ffi-utils
A utility library for the purescript foreign function interface
Stars: ✭ 22 (-56.86%)
Mutual labels:  ffi
lonlat bng
A multithreaded Rust library with FFI for converting WGS84 longitude and latitude coordinates into BNG (OSGB36) Eastings and Northings and vice versa (using OSTN15)
Stars: ✭ 20 (-60.78%)
Mutual labels:  ffi
pybluemonday
pybluemonday is a library for sanitizing HTML very quickly via bluemonday.
Stars: ✭ 25 (-50.98%)
Mutual labels:  ffi
idris-ffi-example
A minimal example of the Idris C FFI
Stars: ✭ 14 (-72.55%)
Mutual labels:  ffi
buke
full text search manpages
Stars: ✭ 27 (-47.06%)
Mutual labels:  ffi
serialport
PHP Serial Port
Stars: ✭ 42 (-17.65%)
Mutual labels:  serialport
pony-sodium
Safe Pony FFI wrapper for the libsodium cryptography library. 🐴 🔐
Stars: ✭ 24 (-52.94%)
Mutual labels:  ffi
generic-linked-in-driver
A generic non-blocking linked-in driver for interfacing Erlang and C
Stars: ✭ 46 (-9.8%)
Mutual labels:  ffi
opencl-ruby
OpenCL bindings for Ruby
Stars: ✭ 38 (-25.49%)
Mutual labels:  ffi
PointerScript
Scripting language with pointers and native library access.
Stars: ✭ 26 (-49.02%)
Mutual labels:  ffi
swift-bridge
swift-bridge facilitates Rust and Swift interop.
Stars: ✭ 260 (+409.8%)
Mutual labels:  ffi
eta-ffi
A command line tool to automate the generation of ffi import code for the bindings of various Java libraries.
Stars: ✭ 19 (-62.75%)
Mutual labels:  ffi
winsafe
Windows API and GUI in safe, idiomatic Rust.
Stars: ✭ 110 (+115.69%)
Mutual labels:  ffi

Dart FFI bindings to libserialport

pub CI style: lint license: LGPL3+

TIP: See also flutter_libserialport for automatic building and deploying of libserialport.

This Dart package is based on libserialport, which is a minimal C-library created by the sigrok project, and released under the LGPL3+ license.

Supported platforms:

  • Linux
  • macOS
  • Windows
  • Android

This package uses dart:ffi to call libserialport's C APIs, which implies that libserialport must be bundled to or deployed with the host application. It can be tedious to build and deploy libserialport on all target platforms, but in case you are building a Flutter app instead of a pure Dart app, there is a ready-made drop-in solution called flutter_libserialport that utilizes Flutter's build system to build and deploy libserialport on all supported platforms:

Usage

import 'package:libserialport/libserialport.dart';

final name = SerialPort.availablePorts.first;
final port = SerialPort(name);
if (!port.openReadWrite()) {
  print(SerialPort.lastError);
  exit(-1);
}

port.write(/* ... */);

final reader = SerialPortReader(port);
reader.stream.listen((data) {
  print('received: $data');
});

To use this package, add libserialport as a dependency in your pubspec.yaml file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].