From 08c2f5492af48e77f5f49d5768baf1dc045b9e8a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 19 Jul 2017 06:15:30 -0700 Subject: BLE on iOS: use uuid instead of BT address iOS doesn't give us an address of BT devices. Signed-off-by: Dirk Hohndel --- core/btdiscovery.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index e1893713d..cab44b4a6 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -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) -- cgit v1.2.3-70-g09d2