wjwwood / serial

Cross-platform, Serial Port library written in C++
http://wjwwood.github.com/serial/
MIT License
2.11k stars 1.02k forks source link

tcgetattr error while opening #262

Open KammutierSpule opened 2 years ago

KammutierSpule commented 2 years ago

On Linux the list_ports lists all /dev/ttySx ports.

I'm trying to test which ones are real serial ports.

If I try to open this "virtual ports" I got a THROW for tcgetattr.

Is there any other way to test if a serial port can be opened? and is valid?