Skip to content

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

License

Notifications You must be signed in to change notification settings

NCrashed/serial-port

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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": "~>1.2"
},

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published