C++ uart library
As soon as you clone this repository, type these commands bellow.
mkdir build && cd build
cmake .. && make
sudo make install
Then you can use serial_connect library by just including serial_connect/serial_connect.hpp
Make sure you write
find_package(serial_connect REQUIRED)
in your CMakeLists.txt file.
- Create SerialConnect class
- Set device information
- Open device
- Read and Write the device
- Close device
- (Optional) Set receive interrupt callback function
- (Optional) Set error and information display function