Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.11, 5.12.0
-
None
-
-
45608abda7b9470ec0b3ea26e849ec71b637288d (qt/qtconnectivity/5.12)
Description
I have a problem when i try to connect to a bluetooth-device with an uuid QBluetoothUuid::SerialPort on Android 7 and up. I always get "Connection to service failed". When I change qtconnectivity/src/bluetooth/qbluetoothsocket_android.cpp the function reverseUuid to return serviceUuid instead QBluetoothUuid(). It works fine.
Problem:static QBluetoothUuid reverseUuid(const QBluetoothUuid &serviceUuid)
{
...
if (isBaseUuid)
return QBluetoothUuid();
...
}
No problem:
static QBluetoothUuid reverseUuid(const QBluetoothUuid &serviceUuid)
{
...
if (isBaseUuid)
return serviceUuid;
...
}