mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
40f5e2e30c
commit
02d3289bbf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue