Hi
I use the following code for finding available ports and checking if the ports are busy or not. Actually I would like to use only port which is not used by any aplication.
Qt Code:
foreach (const QSerialPortInfo &serial,QSerialPortInfo::availablePorts()){ qDebug() << "Name :" << serial.portName(); if (serial.isBusy()) qDebug () << "OK"; else qDebug () << "NOT OK"; }To copy to clipboard, switch view to plain text mode
but It takes 35 sec Should it take so much time ?
Is it proper working ?
Regards
Artur
Bookmarks