Solved Opening a unique serial device
-
Hi all,
I am opening a FTDI based serial device by passing the port name every time as follows:
serial->setPortName("com5")
I looking for automatic port identification by making use of device serial number.
Can you give me an example of usingQSerialPortInfo
for automatic port identification? -
@viniltc Simply call https://doc.qt.io/qt-5/qserialportinfo.html#availablePorts and then iterate over the list it returns and check https://doc.qt.io/qt-5/qserialportinfo.html#serialNumber
-
Thank you @jsulm , that's fixed.