[Solved] converting data hex value stored in QString to ASCII format
-
I am reading data from the device through serial interface .First I received weird data then I try to convert what I am receiving to hex and it and the output I get is 31204a756c203230313320 , how I can convert this ASCII format?
@
QByteArray inComBuffer;
if (port->bytesAvailable()) {inComBuffer.append(port->readAll().toHex()); QString version=inComBuffer.mid(12,22); ui->recvEdit->insertPlainText(version);
}
@