mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
0e865ef4e7
commit
08c2f5492a
1 changed files with 4 additions and 1 deletions
|
@ -174,8 +174,11 @@ QString markBLEAddress(const QBluetoothDeviceInfo *device)
|
||||||
flags = device->coreConfigurations();
|
flags = device->coreConfigurations();
|
||||||
if (flags == QBluetoothDeviceInfo::LowEnergyCoreConfiguration)
|
if (flags == QBluetoothDeviceInfo::LowEnergyCoreConfiguration)
|
||||||
prefix = "LE:";
|
prefix = "LE:";
|
||||||
|
#if defined(Q_OS_IOS)
|
||||||
|
return prefix + device->deviceUuid().toString();
|
||||||
|
#else
|
||||||
return prefix + device->address().toString();
|
return prefix + device->address().toString();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void BTDiscovery::btDeviceDiscovered(const QBluetoothDeviceInfo &device)
|
void BTDiscovery::btDeviceDiscovered(const QBluetoothDeviceInfo &device)
|
||||||
|
|
Loading…
Add table
Reference in a new issue