mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
Add support for serial bluetooth ports on Linux (#237)
Added search blob /dev/rfcomm*. rfcomm* is a commonly used naming convention for bluetooth ports on linux
This commit is contained in:
parent
9fc9e81fc1
commit
ed9f89ca31
@ -305,6 +305,7 @@ serial::list_ports()
|
|||||||
search_globs.push_back("/dev/ttyUSB*");
|
search_globs.push_back("/dev/ttyUSB*");
|
||||||
search_globs.push_back("/dev/tty.*");
|
search_globs.push_back("/dev/tty.*");
|
||||||
search_globs.push_back("/dev/cu.*");
|
search_globs.push_back("/dev/cu.*");
|
||||||
|
search_globs.push_back("/dev/rfcomm*");
|
||||||
|
|
||||||
vector<string> devices_found = glob( search_globs );
|
vector<string> devices_found = glob( search_globs );
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user