serial-port 1.2.0

Minimalistic serial port library. Exctracted from Tango library.


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

dub.json
dub.sdl

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

Authors:NCrashed - Gushcha Anton, O3O - Orfeo Da Viá

Dependencies: none

Versions:
1.2.0 2017-Feb-03
1.1.0 2014-Oct-14
1.0.0 2014-Feb-20
1.0.0-docs 2014-Feb-20
~master 2017-Feb-03
Show all 6 versions
Stats:

statistics are temporarily disabled.