Merge PR #24: Update documentation

This commit is contained in:
Jenkins nymea 2020-01-23 13:40:41 +01:00
commit e3f96344a8
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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.";