summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2014-07-06 16:34:56 +0200
committerTomasz Sterna <tomek@xiaoka.com>2014-07-09 01:57:32 +0200
commitd3d54722d8532bd649db6792126c0a990712e26c (patch)
treef2f9c8955e8920fa2da0dc1aaa090a69e6a25271
parent83d3db78d63b1b8e21277fafd1ee0238fd7e3ddd (diff)
Find Pebble Serial port via BT UUID
-rw-r--r--lib/watchconnector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/watchconnector.cpp b/lib/watchconnector.cpp
index 1bfce0d..18d287e 100644
--- a/lib/watchconnector.cpp
+++ b/lib/watchconnector.cpp
@@ -60,7 +60,7 @@ void WatchConnector::handleWatch(const QString &name, const QString &address)
connect(socket, SIGNAL(error(QBluetoothSocket::SocketError)), this, SLOT(onError(QBluetoothSocket::SocketError)));
// FIXME: Assuming port 1 (with Pebble)
- socket->connectToService(QBluetoothAddress(address), 1);
+ socket->connectToService(QBluetoothAddress(address), QBluetoothUuid(QBluetoothUuid::SerialPort));
}
QString WatchConnector::decodeEndpoint(unsigned int val)