diff options
Diffstat (limited to 'src/metawatchbttransport.cpp')
-rw-r--r-- | src/metawatchbttransport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/metawatchbttransport.cpp b/src/metawatchbttransport.cpp index 63996e9..a77977e 100644 --- a/src/metawatchbttransport.cpp +++ b/src/metawatchbttransport.cpp @@ -118,7 +118,7 @@ void MetaWatchBTTransport::connectDevice() // Sadly, seems that QBluetoothSocket doesn't really like been closed and reopened, // so we recreate it every time. - _socket = new QBluetoothSocket(QBluetoothSocket::RfcommSocket, this); + _socket = new QBluetoothSocket(QBluetoothServiceInfo::RfcommProtocol, this); connect(_socket, &QBluetoothSocket::connected, this, &MetaWatchBTTransport::handleSocketConnected); connect(_socket, &QBluetoothSocket::disconnected, this, &MetaWatchBTTransport::handleSocketDisconnected); connect(_socket, &QBluetoothSocket::readyRead, this, &MetaWatchBTTransport::handleSocketData); |