The result of calling serviceUUIDs is different in Q5 and Qt6
-
There is an example of a "Bluetooth Low Energy Scanner" in Qt. When scanning devices, when the QBluetoothDeviceDiscoveryAgent::deviceDiscovered
signal occurs, the Device::AddDevice method is called. The Qbluetoothserviceinfo &info object is passed to this method. If I call the serviceUUIDs() method from info, then Qt6 and Qt5 will have different results.Here's what I get in Qt5

And that's what I get in Qt6

At the same time, I know for sure that my BLE device has a second uuid that is 6E400001-B5A3-F393-E0A9-E50E24DCCA9E
If I use QLowEnergyController to find out all the services, then there will be a service with the uuid 6E400001-B5A3-F393-E0A9-E50E24DCCA9E. So there is some problem with the primary definition of uuid in Qt6.
Is this really a problem or is the current behavior of Qt6 correct? -
There is an example of a "Bluetooth Low Energy Scanner" in Qt. When scanning devices, when the QBluetoothDeviceDiscoveryAgent::deviceDiscovered
signal occurs, the Device::AddDevice method is called. The Qbluetoothserviceinfo &info object is passed to this method. If I call the serviceUUIDs() method from info, then Qt6 and Qt5 will have different results.Here's what I get in Qt5

And that's what I get in Qt6

At the same time, I know for sure that my BLE device has a second uuid that is 6E400001-B5A3-F393-E0A9-E50E24DCCA9E
If I use QLowEnergyController to find out all the services, then there will be a service with the uuid 6E400001-B5A3-F393-E0A9-E50E24DCCA9E. So there is some problem with the primary definition of uuid in Qt6.
Is this really a problem or is the current behavior of Qt6 correct?I forgot to add, Qt 5.15.2 and Qt 6.6.0 are used
-
I forgot to add, Qt 5.15.2 and Qt 6.6.0 are used
I also checked which uuids are defined in Qt6 and Ubuntu - the uuids are correct there. It turns out the problem is in Qt6 and Android
-
@Mr_Integral Now that you narrowed it down not just Qt6, but to Qt6 on a specific platform, this is definitely sounding like a bug in my opinion.
I went to search the bugtracker to see if anyone else has reported it.
You reported it! Kudos. https://bugreports.qt.io/browse/QTBUG-119248
It's helpful to me that you posted here, because I am currently considering moving an Android app that I maintain onto Qt6 (it currently uses Qt5), but I need BLE to work, so your posts have given me some "fair warning." Thanks!