mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:13:25 +00:00
Android BT: use NoSecurity for connection
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b9760f1db0
commit
4ed6ae0dc7
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue