Description

Minimalistic serial port library. Exctracted from Tango library.

Package Information

Version1.2.0 (2017-Feb-03)
Homepagehttps://github.com/NCrashed/serial-port
Repositoryhttps://github.com/NCrashed/serial-port
LicenseBoost
CopyrightCopyright © 2013, Gushcha Anton
AuthorsNCrashed - Gushcha Anton, O3O - Orfeo Da Viá
Registered byAnton Gushcha
Dependenciesnone

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

serial-port

Crossplatform library for operating with serial ports in D programming language. Documentation.

Compilation

With dub:

dub build

with make

make

Or, put in your dub.json dependencies:

"dependencies": {
  "serial-port": "~master"
},

To compile tests with dub:

dub build --build=unittest --config=unittest
./serial-port

with make

make test
./serial-port

You should have two serial ports linked to each other (com0com on Windows, socat in linux). For instance, writing to 'COM1' and reading from 'COM2'. On posix you can use socat to create serial port pipe:

socat /dev/ttyS0,raw,echo=0,crnl /dev/ttyS1,raw,echo=0,crnl

References

Available versions

1.2.0 1.1.0 1.0.0 1.0.0-docs ~master ~issue-10