diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-05-21 17:32:33 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-26 10:53:39 +0200 |
commit | 552f1a164d627720942414915fb56ae7d3b7ef22 (patch) | |
tree | 3f54608415bff6eee77cf916fe17eaeb1e00223c /tests/bttestui | |
parent | 01047d81fa213886a0784ff2ef567c99136f6ac7 (diff) |
Port QBluetoothSocket/QBluetoothServer to Bluez 5
Task-number: QTBUG-32085
Change-Id: I9fe63f3291a10a195d460720cd1821913a63b25b
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'tests/bttestui')
-rw-r--r-- | tests/bttestui/btlocaldevice.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/bttestui/btlocaldevice.cpp b/tests/bttestui/btlocaldevice.cpp index bafb3e76..a30e2406 100644 --- a/tests/bttestui/btlocaldevice.cpp +++ b/tests/bttestui/btlocaldevice.cpp @@ -469,7 +469,10 @@ void BtLocalDevice::readData() if (socket) { while (socket->canReadLine()) { QByteArray line = socket->readLine().trimmed(); - qDebug() << ">>>>" << QString::fromUtf8(line.constData(), line.length()); + qDebug() << ">> peer(" << socket->peerName() << socket->peerAddress() + << socket->peerPort() << ") local(" + << socket->localName() << socket->localAddress() << socket->localPort() + << ")>>" << QString::fromUtf8(line.constData(), line.length()); } } } @@ -607,7 +610,7 @@ void BtLocalDevice::clientSocketReadyRead() while (socket->canReadLine()) { const QByteArray line = socket->readLine().trimmed(); QString lineString = QString::fromUtf8(line.constData(), line.length()); - qDebug() << ">>(" << socket->peerName() << ")>>" + qDebug() << ">>(" << server->serverAddress() << server->serverPort() <<")>>" << lineString; //when using the tst_QBluetoothSocket we echo received text back |