summaryrefslogtreecommitdiffstats
path: root/core/qtserialbluetooth.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-31 11:43:18 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-31 11:43:18 -0700
commit4ed6ae0dc7593c713ac7e762aa3642ddece608a7 (patch)
tree240ebc004defa0d1dfa8e63d159b060f128c0aaa /core/qtserialbluetooth.cpp
parentb9760f1db04620d4fc5e495cc812b3b92ecd2e4e (diff)
downloadsubsurface-4ed6ae0dc7593c713ac7e762aa3642ddece608a7.tar.gz
Android BT: use NoSecurity for connection
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/qtserialbluetooth.cpp')
-rw-r--r--core/qtserialbluetooth.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/qtserialbluetooth.cpp b/core/qtserialbluetooth.cpp
index e14d8e9f9..1d59124e5 100644
--- a/core/qtserialbluetooth.cpp
+++ b/core/qtserialbluetooth.cpp
@@ -149,6 +149,7 @@ static dc_status_t qt_serial_open(void **userdata, const char* devaddr)
#if defined(Q_OS_ANDROID)
QBluetoothUuid uuid = getBtUuid();
qDebug() << "connecting to Uuid" << uuid;
+ serial_port->socket->setPreferredSecurityFlags(QBluetooth::NoSecurity);
serial_port->socket->connectToService(remoteDeviceAddress, uuid, QIODevice::ReadWrite | QIODevice::Unbuffered);
#else
serial_port->socket->connectToService(remoteDeviceAddress, 1, QIODevice::ReadWrite | QIODevice::Unbuffered);