QString to QByteArray problem.
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???
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.