Code:
QByteArray receive=serialport.readAll();
qDebug()<<"receive="<<receive;
qDebug output:
receive= "\x02\x03*\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9D)"
What does the * and ) mean?
'*'is\x2aand')'is\x29.I guess the
qDebug()<<QByteArrayprints a byte as a ASCII symbol if it's printable, and prints its value if not.