https://github.com/icetd/libserial
serial port lib for unix
https://github.com/icetd/libserial
linux-serialport
Last synced: 12 days ago
JSON representation
serial port lib for unix
- Host: GitHub
- URL: https://github.com/icetd/libserial
- Owner: icetd
- Created: 2023-08-01T11:56:58.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-27T04:05:36.000Z (over 1 year ago)
- Last Synced: 2025-01-12T15:15:05.719Z (over 1 year ago)
- Topics: linux-serialport
- Language: C++
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## build
```
mkdir build && cd build
cmake .. && make -j4
```
## Use
If the length of the data you receive is fixed and relatively long, you can set vmin
```
Serial::SerialOpt_t serialOpt {
.speed = 115200,
.dataBits = 8,
.stopbits = 1,
.parity = 'n',
.flowControlMode = 's',
.vtime = 1, // 0.1s * vtime receive timeout
.vmin = 1,
};
```