@mganesh This works fine for me. Your output can not match on what you've written. Please post all your test code
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
QString monitorCommand = "020400000006703B";
QByteArray data_to_transmit = QByteArray::fromHex(monitorCommand.toUtf8());
qDebug() << monitorCommand << data_to_transmit;
return 0;
}
-->
"020400000006703B" "\x02\x04\x00\x00\x00\x06p;"