Skip to content

Commit

Permalink
Increase keepalive
Browse files Browse the repository at this point in the history
This is a workaround for OpenZWave#140 to ensure the daemon is able to start up while we are waiting for a proper fix
  • Loading branch information
Olen authored Nov 10, 2020
1 parent 7ebd43e commit 4708939
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qt-ozwdaemon/mqttpublisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ mqttpublisher::mqttpublisher(QSettings *settings, QObject *parent) :
this->m_client->setHostname(settings->value("MQTTServer", "127.0.0.1").toString());
this->m_client->setPort(static_cast<quint16>(settings->value("MQTTPort", 1883).toInt()));
this->m_client->setClientId(QString("qt-openzwave-%1").arg(settings->value("Instance", 1).toInt()));
this->m_client->setKeepAlive(360);
if (settings->contains("MQTTUsername")) {
QString mqttpass = qgetenv("MQTT_PASSWORD");

Expand Down

0 comments on commit 4708939

Please sign in to comment.