Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.14.0
-
None
-
Android 10
-
-
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();