[Interest] QtBluetooth Low Energy: How to find my peripheral?

Alexander Blasche alexander.blasche at qt.io
Wed Oct 12 15:45:23 CEST 2016

> -----Original Message-----
> From: Interest [mailto:interest-bounces+alexander.blasche=qt.io at qt-
> project.org] On Behalf Of Prashant Vaibhav
> Sent: Wednesday, 12 October 2016 13:45
> To: interest at qt-project.org
> Subject: [Interest] QtBluetooth Low Energy: How to find my peripheral?
> Hi all,
> I’m using QtBluetooth low energy API on Qt 5.7 / Android 5/6. Targeting API level
> 19 (android 4.4+).

What are you using Qt 5.6 or 5.7?

> My problem is that I cannot find a way to decide which of the BLE devices
> returned during scan is mine:
> - The advertising data is inaccessible (no API).
> - The QBluetoothDeviceInfo.serviceUuids() function returns nothing (apparently
> it’s for classic bluetooth)
> - The QBluetoothDeviceInfo.name() function is null (empty string)

> So the only information I have is the rssi (QBluetoothDeviceInfo.rssi()), which is
> not enough to figure out the scanned device is ours. Furthermore, I cannot show
> a list to the user to pick the device manually, since all it will have is the signal level
> (and perhaps MAC address).

I believe you may experience https://bugreports.qt.io/browse/QTBUG-54867.

It was fixed in Qt 5.6.2 and 5.7.1. Alternatively you may cherry-pick the referenced patches into your Qt build.


More information about the Interest mailing list