Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-70920

QBluetoothSocket write data

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.11.2
    • None
    • Windows 10
    • WinRT

    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

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            owolff Oliver Wolff
            simonmonney Simon Monney
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes