mirror of
https://gitlab.com/eql/lqml.git
synced 2026-02-23 00:20:53 -08:00
example 'meshtastic': add Qt6 version (for macOS); revisions
This commit is contained in:
parent
1a822feb0e
commit
439d93404d
57 changed files with 2030 additions and 7 deletions
|
|
@ -13,8 +13,12 @@ BLE::BLE(const QBluetoothUuid& uuid) : mainServiceUuid(uuid) {
|
|||
|
||||
connect(discoveryAgent, &QBluetoothDeviceDiscoveryAgent::deviceDiscovered,
|
||||
this, &BLE::addDevice);
|
||||
#if QT_VERSION < 0x060000
|
||||
connect(discoveryAgent, QOverload<QBluetoothDeviceDiscoveryAgent::Error>::of(&QBluetoothDeviceDiscoveryAgent::error),
|
||||
this, &BLE::deviceScanError);
|
||||
#else
|
||||
connect(discoveryAgent, &QBluetoothDeviceDiscoveryAgent::errorOccurred, this, &BLE::deviceScanError);
|
||||
#endif
|
||||
connect(discoveryAgent, &QBluetoothDeviceDiscoveryAgent::finished, this, &BLE::deviceScanFinished);
|
||||
}
|
||||
|
||||
|
|
@ -83,8 +87,12 @@ void BLE::scanServices() {
|
|||
controller = QLowEnergyController::createCentral(currentDevice);
|
||||
connect(controller, &QLowEnergyController::connected,
|
||||
this, &BLE::deviceConnected);
|
||||
#if QT_VERSION < 0x060000
|
||||
connect(controller, QOverload<QLowEnergyController::Error>::of(&QLowEnergyController::error),
|
||||
this, &BLE::errorReceived);
|
||||
#else
|
||||
connect(controller, &QLowEnergyController::errorOccurred, this, &BLE::errorReceived);
|
||||
#endif
|
||||
connect(controller, &QLowEnergyController::disconnected,
|
||||
this, &BLE::deviceDisconnected);
|
||||
connect(controller, &QLowEnergyController::serviceDiscovered,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue