NativeSerialPort_Win32
Functions
getNativeSerialPort
boost::asio::serial_port_service::native_type getNativeSerialPort(
std::string portName
)

opens a connection to the specified port, sets the correct Byte Size, and gets the handle to it

Parameters
portName
std::string

the name of the port to be opened ("COM26")

Returns

The handle to the port as a boost serial_port_service::native_type

Exceptions