From 02d3289bbf8105c1caea96b253db71b141d52246 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 31 May 2017 22:16:25 -0700 Subject: 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 --- core/qtserialbluetooth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2