Skip to content
forked from wjwwood/serial

Cross-platform, Serial Port library written in C++

License

Notifications You must be signed in to change notification settings

markaren/serial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serial Communication Library

This is a cross-platform library for interfacing with rs-232 serial like ports written in C++. It provides a modern C++ interface with a workflow designed to look and feel like PySerial, but with the speed and control provided by C++.

Serial is a class that provides the basic interface common to serial libraries (open, close, read, write, etc..) and requires no extra dependencies. It also provides tight control over timeouts and control over handshaking lines.

Documentation

API Documentation: http://wjwwood.github.io/serial/doc/1.1.0/index.html

Fork changes

This fork has replaced the previous build setup in order to successfully build with no extra dependencies. Build it as any other regular CMake project.

Usage with CMake FetchContent

include(FetchContent)
set(SERIAL_BUILD_EXAMPLES OFF)
FetchContent_Declare(
        serial
        GIT_REPOSITORY https://github.com/markaren/serial.git
        GIT_TAG <git_tag_or_commit_id>
)
FetchContent_MakeAvailable(serial)

...

target_link_libraries(<target> PRIVATE serial)

License

The MIT License

Original Authors

William Woodall [email protected] John Harrison [email protected]

About

Cross-platform, Serial Port library written in C++

Resources

License

Stars

Watchers

Forks

Languages

  • C++ 95.3%
  • CMake 2.6%
  • C 2.1%