diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-05-31 22:16:25 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-31 22:16:25 -0700 |
commit | 02d3289bbf8105c1caea96b253db71b141d52246 (patch) | |
tree | 38dcc57c4a7c65c4df785a3c89a6cf268c5375f5 /core/qtserialbluetooth.cpp | |
parent | 40f5e2e30c42d539f0c58d2d1577c36fdc85d153 (diff) | |
download | subsurface-02d3289bbf8105c1caea96b253db71b141d52246.tar.gz |
Android BT download: hardcode UUID
While it seemed logical to use the advertized service UUID that doesn't
appear to be working - instead using this hard coded UUID seems to do
the trick. I now did a successful download from my Shearwater Petrel.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/qtserialbluetooth.cpp')
-rw-r--r-- | core/qtserialbluetooth.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/qtserialbluetooth.cpp b/core/qtserialbluetooth.cpp index 1d59124e5..f40c619a9 100644 --- a/core/qtserialbluetooth.cpp +++ b/core/qtserialbluetooth.cpp @@ -147,7 +147,7 @@ static dc_status_t qt_serial_open(void **userdata, const char* devaddr) // Try to connect to the device using the uuid of the Serial Port Profile service QBluetoothAddress remoteDeviceAddress(devaddr); #if defined(Q_OS_ANDROID) - QBluetoothUuid uuid = getBtUuid(); + QBluetoothUuid uuid = QBluetoothUuid(QUuid("{00001101-0000-1000-8000-00805f9b34fb}")); qDebug() << "connecting to Uuid" << uuid; serial_port->socket->setPreferredSecurityFlags(QBluetooth::NoSecurity); serial_port->socket->connectToService(remoteDeviceAddress, uuid, QIODevice::ReadWrite | QIODevice::Unbuffered); |