From 78cc67d6c8448783bb2679d804da60cde91ede4d Mon Sep 17 00:00:00 2001 From: danimtb Date: Thu, 2 Nov 2017 20:10:21 +0100 Subject: [PATCH] Fixed lastwill variable --- MqttManager/MqttManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MqttManager/MqttManager.cpp b/MqttManager/MqttManager.cpp index 84957f0..f8a07f2 100644 --- a/MqttManager/MqttManager.cpp +++ b/MqttManager/MqttManager.cpp @@ -14,7 +14,7 @@ void onMqttMessage(char* topic, char* payload, AsyncMqttClientMessageProperties MqttManager::MqttManager() { m_connected = false; - lastWillPayload = "Offline"; + m_lastWillPayload = "Offline"; m_checkConnectivityTimeOnline = 20000;