diff options
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/device.cpp')
-rw-r--r-- | examples/bluetooth/lowenergyscanner/device.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/bluetooth/lowenergyscanner/device.cpp b/examples/bluetooth/lowenergyscanner/device.cpp index 50d51631..00a0ae39 100644 --- a/examples/bluetooth/lowenergyscanner/device.cpp +++ b/examples/bluetooth/lowenergyscanner/device.cpp @@ -176,7 +176,7 @@ void Device::connectToService(const QString &uuid) for (int i = 0; i < m_services.size(); i++) { ServiceInfo *service = (ServiceInfo*)m_services.at(i); a = QLowEnergyServiceInfo(service->getLeService()); - if (a.uuid() == u) + if (a.serviceUuid() == u) info->connectToService(a); } } @@ -195,8 +195,8 @@ void Device::serviceConnected(const QLowEnergyServiceInfo &service) void Device::errorReceived(const QLowEnergyServiceInfo &service) { - qDebug() << "Error: " << service.errorString(); - setUpdate(service.errorString()); + qDebug() << "Error: " << info->errorString() << service.serviceUuid(); + setUpdate(info->errorString()); } void Device::setUpdate(QString message) |