Fix bluetooth le connection

This commit is contained in:
Simon Stürz 2025-08-21 11:23:54 +02:00
parent 173c318dd3
commit d58c5a6cf7

View File

@ -48,7 +48,11 @@ BluetoothLowEnergyDeviceImplementation::BluetoothLowEnergyDeviceImplementation(c
connect(m_controller, &QLowEnergyController::disconnected, this, &BluetoothLowEnergyDeviceImplementation::onDisconnected);
connect(m_controller, &QLowEnergyController::discoveryFinished, this, &BluetoothLowEnergyDeviceImplementation::onServiceDiscoveryFinished);
connect(m_controller, &QLowEnergyController::stateChanged, this, &BluetoothLowEnergyDeviceImplementation::onStateChanged);
#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
connect(m_controller, &QLowEnergyController::errorOccurred, this, &BluetoothLowEnergyDeviceImplementation::onDeviceError);
#else
connect(m_controller, SIGNAL(error(QLowEnergyController::Error)), this, SLOT(onDeviceError(QLowEnergyController::Error)));
#endif
}
QString BluetoothLowEnergyDeviceImplementation::name() const