diff --git a/qbluetoothleuart.cpp b/qbluetoothleuart.cpp index 2d0e146..12cb49a 100644 --- a/qbluetoothleuart.cpp +++ b/qbluetoothleuart.cpp @@ -114,7 +114,7 @@ bool QBluetoothLeUart::connectToDevice(QBluetoothLeUartDevice *device){ // initialize QLowEnergyController bluetoothController = new QLowEnergyController(currentBluetoothDevice->getDevice(), this); - bluetoothController ->setRemoteAddressType(QLowEnergyController::RandomAddress); + bluetoothController->setRemoteAddressType(QLowEnergyController::RandomAddress); connect(this->bluetoothController, &QLowEnergyController::serviceDiscovered, this, &QBluetoothLeUart::handleServiceDiscovered); connect(this->bluetoothController, &QLowEnergyController::discoveryFinished, this, &QBluetoothLeUart::handleServiceScanDone); @@ -177,7 +177,7 @@ void QBluetoothLeUart::handleDeviceDiscovered(const QBluetoothDeviceInfo &device { // Is it a BLE device? if (device.coreConfigurations() & QBluetoothDeviceInfo::LowEnergyCoreConfiguration) { - //qWarning() << "Discovered BLE Device: name: " << device.name() << " Address: " << device.address().toString(); + qWarning() << "Discovered BLE Device: name: " << device.name() << " Address: " << device.address().toString() << " UUIDs: " << device.serviceUuids(); // ignore all devices that to not support our service if(!device.serviceUuids().contains(QBluetoothUuid(this->uartServiceUUID))) return;