Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QString to QByteArray problem.
streetsoul last edited by streetsoul
I want to sending data by UART communication.
So add below code.
QString value = "100000000";
send_data = value.toUtf8();
In this case, when data receiving occured fail.
But if setting the value variable as "10000000"
The result is success. data receiving is success.
How can I solve this problem???
Fuel 0 last edited by
hskoglund last edited by
Hi, also you could check that both sides of the UART communication has the same parity settings.
No need for QString to be involved in this case.
port->write("100000000");should be enough.