example 'meshtastic', add iOS version, background ini, startup animation

This commit is contained in:
pls.153 2023-06-06 11:37:12 +02:00
parent 1f72af5440
commit 0446628830
25 changed files with 181 additions and 111 deletions

View file

@ -17,8 +17,6 @@ BLE::BLE(const QBluetoothUuid& uuid) : mainServiceUuid(uuid) {
connect(discoveryAgent, QOverload<QBluetoothDeviceDiscoveryAgent::Error>::of(&QBluetoothDeviceDiscoveryAgent::error),
this, &BLE::deviceScanError);
connect(discoveryAgent, &QBluetoothDeviceDiscoveryAgent::finished, this, &BLE::deviceScanFinished);
QTimer::singleShot(0, this, &BLE::startDeviceDiscovery);
}
void BLE::startDeviceDiscovery() {
@ -60,8 +58,7 @@ void BLE::scanServices() {
if (controller && (previousAddress != currentDevice.address())) {
Q_EMIT deviceDisconnecting();
controller->disconnectFromDevice();
delete controller;
controller = nullptr;
delete controller; controller = nullptr;
}
if (!controller) {