Reputation: 7090
I'm creating software using C++ and the boost::asio library that requires access a serial port. I would like to create a GUI which includes choices for the serial port device name, such as /dev/ttyUSB0
under Linux or COM3:
under Windows.
So far, I've just put in simple text edit box so that the user can simply type the device name, but a user suggested that a combo-box would be a little more user-friendly.
Are there some kind of reasonably cross-platform methods by which to list the possible serial ports?
Upvotes: 3
Views: 714
Reputation: 62472
No, there's nothing like this.
Your best bet is to have a platform specific confic file that lists the values to display in the combo box.
Upvotes: 3