BLE on iOS: use uuid instead of BT address

iOS doesn't give us an address of BT devices.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-07-19 06:15:30 -07:00
parent 0e865ef4e7
commit 08c2f5492a

View file

@ -174,8 +174,11 @@ QString markBLEAddress(const QBluetoothDeviceInfo *device)
flags = device->coreConfigurations();
if (flags == QBluetoothDeviceInfo::LowEnergyCoreConfiguration)
prefix = "LE:";
#if defined(Q_OS_IOS)
return prefix + device->deviceUuid().toString();
#else
return prefix + device->address().toString();
#endif
}
void BTDiscovery::btDeviceDiscovered(const QBluetoothDeviceInfo &device)