Skip to content

Serial port reading using Boost library implemented through callback function.

Notifications You must be signed in to change notification settings

longylian6/boost_serial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boost_serial

使用boost库实现串口读取并以回调函数方式处理

编译运行

直接运行脚本即可

./buils_script.sh

看到如下输出即为成功

...
[ 33%] Linking CXX executable main
[100%] Built target main
[Serial] Set read callback
[Serial] Open port /dev/ttyUSB1 with baudrate 9600
Received: 01, 02, 03, 04, 05, FF, 
Received: 01, 02, 03, 04, 05, FF, 
[Serial] Close serial port /dev/ttyUSB1
[Serial] Exit receive thread

About

Serial port reading using Boost library implemented through callback function.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published