Skip to content

Commit

Permalink
Set KeepAlive to 30
Browse files Browse the repository at this point in the history
  • Loading branch information
danimtb committed Aug 18, 2017
1 parent 63aca07 commit 26a6d77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 95 deletions.
1 change: 1 addition & 0 deletions MqttManager/MqttManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ void MqttManager::setup(String mqttServer, String mqttPort, String mqttUsername,
m_mqttClient.onMessage(onMqttMessage);

m_mqttClient.setCleanSession(true);
m_mqttClient.setKeepAlive(30);
m_mqttClient.setCredentials(m_mqttUsername.c_str(), m_mqttPassword.c_str());
m_mqttClient.setServer(server, m_mqttPort);

Expand Down
95 changes: 0 additions & 95 deletions MqttManager/MqttManager.h.autosave

This file was deleted.

0 comments on commit 26a6d77

Please sign in to comment.