                     strongSelf.alertAndStopScanning(message: "CentralManager state \"\(state.stringValue)\"")
                 case .resetting:
                     strongSelf.alertAndStopScanning(message:
-                        "CentralManager state \"\(state.stringValue)\". The connection with the system bluetooth service was momentarily lost.")
+                        "CentralManager state \"\(state.stringValue)\". The connection with the system bluetooth service was momentarily lost. Restart scan.")
                 case .unsupported:
                     strongSelf.alertAndStopScanning(message: "CentralManager state \"\(state.stringValue)\". Bluetooth not supported.")
                 }

    }

    func startScan() {
        guard !isScanning else { return }
        isScanning = true
        guard !reachedDiscoveryLimit else { return }

        let future: FutureStream<Peripheral>
        let scanMode = ConfigStore.getScanMode()

    }

    func afterPeripheralDiscovered(_ peripheral: Peripheral) -> Void {
        guard  Singletons.centralManager.peripherals.contains(peripheral) else { return }
        Logger.debug("Discovered peripheral: '\(peripheral.name)', \(peripheral.identifier.uuidString)")
        Notification.send("Discovered peripheral '\(peripheral.name)'")
        updateWhenActive()
