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.
API Documentation: http://wjwwood.github.io/serial/doc/1.1.0/index.html
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.
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)
William Woodall [email protected] John Harrison [email protected]