diff --git a/README.md b/README.md index 66eb4ee..0b1257c 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,9 @@ and installed from [source](https://github.com/nymea/libnymea-networkmanager). > Note: the `libnymea-gpio-dev` package can be installed from the [nymea repository](https://nymea.io/en/wiki/nymea/master/install/debian) or built and installed from [source](https://github.com/nymea/nymea-gpio). +> Note: a `Qt` verion `>=` `5.7.0` is required in order to work and bluez version `>=` `5.48`. + + $ sudo apt update $ sudo apt install qt5-default qtbase5-dev qtbase5-dev-tools libqt5bluetooth5 qtconnectivity5-dev libnymea-networkmanager-dev libnymea-gpio-dev git diff --git a/nymea-networkmanager/core.cpp b/nymea-networkmanager/core.cpp index 54f4047..ecbef01 100644 --- a/nymea-networkmanager/core.cpp +++ b/nymea-networkmanager/core.cpp @@ -159,6 +159,10 @@ void Core::evaluateNetworkManagerState(NetworkManager::NetworkManagerState state if (m_mode != ModeOffline) return; + // If we are still initializing, we don't need to react on the state changed + if (m_initRunning) + return; + // Note: if the wireless device is in the access point mode, the bluetooth server should stop if (m_wirelessDevice && m_wirelessDevice->mode() == WirelessNetworkDevice::ModeAccessPoint) { stopService(); @@ -333,13 +337,13 @@ void Core::onNetworkManagerAvailableChanged(bool available) return; } + qCDebug(dcApplication()) << "Networkmanager is now available."; + if (m_initRunning) { - qCDebug(dcApplication()) << "Init is running..."; + qCDebug(dcApplication()) << "Init is still running..."; return; } - qCDebug(dcApplication()) << "Networkmanager is now available."; - switch (m_mode) { case ModeAlways: qCDebug(dcApplication()) << "Start the bluetooth service because of \"always\" mode.";