All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Added
Available()
method to return number of bytes ready to be read from the receive buffer (thanks lotricekCZ). - Added CMake option for shared library (thanks lotricekCZ).
- Added support for setting the num. data bits.
- Added support for setting the parity.
- Added support for setting the num. stop bits.
- Fixed a build error by changing the branch cmake downloads googletest from master to main.
- ReadBinary() and WriteBinary() added to read/write raw data, instead of having to use strings (thanks to @RolandHughes for adding this).
- Removed download of gtest if tests are not built.
- Install headers correctly when used as a cmake submodule (FetchContent).
Big thanks to https://github.com/MadsAndreasen-Zoetis for these improvements.
- Fixed bug where
echo
was not being set correctly.
- Support for custom baud rates.
- Support for all standard UNIX baud rates.
- Improved Doxygen documentation.
- Improved README.md documentation.
- Dependencies from the README, they weren't that useful and were not accurate anyway.
- Added example of how to use the library to the README.
- Fixed CMake not using C++14 by specifying
set(CMAKE_CXX_STANDARD 14)
rather than justadd_definitions(-std=c++14)
.
- Removed all unit tests that were using virtual serial ports for testing, as these are broken due to a changing TravisCI OS environment. This needs fixing at a later date.
- Sphinx documentation.
- Unit tests for testing
SetTimeout()
.
- Serial port state is set to
CLOSED
on initialization. - Fixed build commands in README.
v2.0.1 - 2017-11-27
- Fixed link to TravisCI image in README.
v2.0.0 - 2017-11-27
- Added CMake build support.
- Added basic, config and read/write unit tests using gtest.
- Improved read() performance due to removal of buffer creation on every call.
- TravisCI configuration file.
- Build script under
tools/
.
- Updated serial port to use C++14.
- Changed library name from serial-port to CppLinuxSerial.
- Updated Doxygen comments.
v1.0.1 - 2014-05-21
- Added ability to enable/disable echo with 'SerialPort::EnableEcho()'.
- Initial commit. serial-port-cpp library has basic functions up and running.