Skip to content

Commit

Permalink
Changed qos and retain flag for not status topics
Browse files Browse the repository at this point in the history
  • Loading branch information
danimtb committed Mar 26, 2017
1 parent beab79c commit 9f0e217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MqttManager/MqttManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void MqttManager::publishDeviceStatusInfo()

deviceDataObject.printTo(deviceDataString);

m_mqttClient.publish(m_deviceDataTopic.c_str(), 1, true, deviceDataString.c_str());
m_mqttClient.publish(m_deviceDataTopic.c_str(), 0, false, deviceDataString.c_str());

this->refreshStatusTopics();
}
Expand Down Expand Up @@ -200,7 +200,7 @@ void MqttManager::loop()
{
for (int i = 0; i < m_tempPublishTopics.size(); i++)
{
m_mqttClient.publish(m_tempPublishTopics[i].first.c_str(), 1, true, m_tempPublishTopics[i].second.c_str());
m_mqttClient.publish(m_tempPublishTopics[i].first.c_str(), 0, false, m_tempPublishTopics[i].second.c_str());
}

m_tempPublishTopics.clear();
Expand Down

0 comments on commit 9f0e217

Please sign in to comment.