SerialPort
A light-weight C++ library for cross-platform serial communication.
|
A light-weight C++ library for cross-platform serial communication on Linux and Windows.
The build instructions are the same for both Windows (tested on Windows 10) and Linux (tested on Ubuntu 20.04):
build
inside the cloned repository folder: build
: And once more from the top for easy copy-and-paste:
To use the SerialPort
in your own project, add the folder SerialPort/include
to your include directories and link against SerialPort/lib/Release/SerialPort.lib
on Windows or SerialPort/lib/Release/libSerialPort.a
on Linux.
Here is a minimal example to get you started:
For more details, check out the documentation.