diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-05-30 17:50:31 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-31 10:15:40 -0700 |
commit | 286bac6d30cf0b9ba5ad2a1fb6cce3287d5aa544 (patch) | |
tree | 4fd4645a2fb4a6d86c8a8006a74253bc118d5c9e /mobile-widgets | |
parent | 782caf5fa6b983658d9119db9b36c24b1522dc0b (diff) | |
download | subsurface-286bac6d30cf0b9ba5ad2a1fb6cce3287d5aa544.tar.gz |
Android: connect to BT via uuid instead of port
We remember the offered service uuids as we detect the device and then
try the first one - likely this needs to be fixed / tuned to pick the
right one if multiple uuids are offered.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 491c16825..47786c0be 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -204,11 +204,15 @@ void QMLManager::mergeLocalRepo() } #if BT_SUPPORT + +extern void addBtUuid(QBluetoothUuid uuid); + void QMLManager::btDeviceDiscovered(const QBluetoothDeviceInfo &device) { QString newDevice = device.name(); QList<QBluetoothUuid> serviceUuids = device.serviceUuids(); foreach (QBluetoothUuid id, serviceUuids) { + addBtUuid(id); qDebug() << id.toByteArray(); } appendTextToLog("Found new device " + newDevice + " (" + device.address().toString() + ")"); |