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

Error when using QBluetoothDeviceDiscoveryAgent with Android API 29

    XMLWordPrintable

Details

    • Android
    • 0c8f3eb35eead6e4db7732020d7fb2863ba3787f (qt/qtconnectivity/5.14) e851596c284bfa3ef5be1bb982cf8a57360baed9 (qt/qtconnectivity/5.12)

    Description

      When you try to discover devices using the QBluetoothDeviceDiscoveryAgent you immediately get QBluetoothDeviceDiscoveryAgent::InputOutputError, after spending some hours trying to figure out what is going on, I discovered that when I switch the target sdk to API 28 it works flawless.

       

      To reproduce the error the next code snipped is enough:

          QBluetoothDeviceDiscoveryAgent *discoveryAgent = new QBluetoothDeviceDiscoveryAgent;
      
          connect(discoveryAgent , SIGNAL(deviceDiscovered(QBluetoothDeviceInfo)),
                  this, SLOT(deviceDiscovered(QBluetoothDeviceInfo)));
          connect(discoveryAgent , SIGNAL(error(QBluetoothDeviceDiscoveryAgent::Error)),
                  this, SLOT(discoveryError(QBluetoothDeviceDiscoveryAgent::Error)));
      
          discoveryAgent->start();

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            blackhack Jose Aristizabal
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: