Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.0
-
None
-
Android 6.0.1
Description
With a BluetoothDiscoveryModel set up as below:
BluetoothDiscoveryModel{
running: true
discoveryMode: BluetoothDiscoveryModel.DeviceDiscovery
}
only LE devices are being found on an Android 6.0.1 device:
... D libmylib.so: (null):0 ((null)): qt.bluetooth.android: DeviceDiscoveryBroadcastReceiver::onReceiveLeScan() D libmylib.so: (null):0 ((null)): qt.bluetooth.android: Device found: "some device" "XX:XX:XX:XX:XX:XX" isLeScanResult: true D libmylib.so: (null):0 ((null)): qt.bluetooth.android: DeviceDiscoveryBroadcastReceiver::onReceiveLeScan() D libmylib.so: (null):0 ((null)): qt.bluetooth.android: Device found: "other device" "YY:YY:YY:YY:YY:YY" isLeScanResult: true ...
On an Android 5.1.1 device, both LE and 2.1 devices are being found:
... D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: DeviceDiscoveryBroadcastReceiver::onReceive() - event: "android.bluetooth.device.action.FOUND" D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: Device found: "old device" "ZZ:ZZ:ZZ:ZZ:ZZ:ZZ" isLeScanResult: false D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: DeviceDiscoveryBroadcastReceiver::onReceive() - event: "android.bluetooth.device.action.FOUND" D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: Device found: "another old device" "WW:WW:WW:WW:WW:WW" isLeScanResult: false ... D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: DeviceDiscoveryBroadcastReceiver::onReceiveLeScan() D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: Device found: "some device" "XX:XX:XX:XX:XX:XX" isLeScanResult: true ... D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: DeviceDiscoveryBroadcastReceiver::onReceiveLeScan() D/libmylib.so(10501): (null):0 ((null)): qt.bluetooth.android: Device found: "other device" "YY:YY:YY:YY:YY:YY" isLeScanResult: true ...