const QByteArray data = m_serialportCoProcessor->readAll();
// check if there was data available
if (data.count() > 0){
// do something with the data
qDebug() << "received" << data.count() << "bytes";
}
To copy to clipboard, switch view to plain text mode
Bookmarks