Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
5.11.2
-
None
-
Windows 10
Description
I'm trying to write data 3 times in a row with the function QBluetoothSocket::writeData.
QString sProtocolCommand = "A0000";
QByteArray nCommandData;
nCommandData.append(DT_PRT_PREFIX_PACKET);
nCommandData.append(m_nEncodeText->fromUnicode(sProtocolCommand));
nCommandData.append(DT_PRT_POSTFIX_PACKET);
socket->write(nCommandData);
socket->write(nCommandData);
socket->write(nCommandData);
My problem is that the programm writes the data only once.
The data I am trying to write contains a carriage return.
If I remove the carriage return of the data the program writes well three times the data. I think the problem comes from the carriage return
Exactly the same code works on Android