diff --git a/debian/control b/debian/control index 942fc65c..7dd65b51 100644 --- a/debian/control +++ b/debian/control @@ -7,8 +7,10 @@ Build-Depends: debhelper (>= 9.0.0), hardening-wrapper, python, rsync, - qt5-default, + qtchooser, + qt5-qmake, qtbase5-dev, + qtbase5-dev-tools, qttools5-dev-tools, qtconnectivity5-dev, libqt5websockets5-dev, @@ -25,7 +27,7 @@ Depends: ${misc:Depends}, guhd (= ${binary:Version}), guh-plugins (= ${binary:Version}), Description:An open source IoT server - meta package - guh is an open source IoT (Internet of Things) server, + The guh server is an open source IoT (Internet of Things) server, which allows to control a lot of different devices from many different manufacturers. With the powerful rule engine you are able to connect any device available in the system and create individual scenes and behaviors diff --git a/server/cloud/cloudconnection.cpp b/server/cloud/cloudconnection.cpp index ce482d3f..d812a9d5 100644 --- a/server/cloud/cloudconnection.cpp +++ b/server/cloud/cloudconnection.cpp @@ -151,6 +151,16 @@ void CloudConnection::onTextMessageReceived(const QString &message) emit dataReceived(jsonDoc.toVariant().toMap()); } +void CloudConnection::onError(const QAbstractSocket::SocketError &error) +{ + if (!m_reconnectionTimer->isActive()) + qCWarning(dcCloud()) << "Websocket error:" << error << m_connection->errorString(); + + m_error = Cloud::CloudErrorProxyServerNotReachable; + m_reconnectionTimer->start(10000); + setConnected(false); +} + void CloudConnection::reconnectionTimeout() { if (m_authenticated) { @@ -159,7 +169,6 @@ void CloudConnection::reconnectionTimeout() m_reconnectionTimer->stop(); m_error = CloudConnectionErrorAuthenticationFailed; } - }