diff --git a/src/mqtt/hasp_mqtt_paho_async.cpp b/src/mqtt/hasp_mqtt_paho_async.cpp index 609af505..d226b980 100644 --- a/src/mqtt/hasp_mqtt_paho_async.cpp +++ b/src/mqtt/hasp_mqtt_paho_async.cpp @@ -142,7 +142,6 @@ static void mqtt_message_cb(char* topic, char* payload, size_t length) snprintf_P(tmp_topic, sizeof(tmp_topic), PSTR("%s" MQTT_TOPIC_LWT), mqttNodeTopic); snprintf_P(msg, sizeof(msg), PSTR("online")); - // /*bool res =*/mqttClient.publish(tmp_topic, msg, true); mqttPublish(tmp_topic, msg, true); } diff --git a/src/mqtt/hasp_mqtt_pubsubclient.cpp b/src/mqtt/hasp_mqtt_pubsubclient.cpp index 7ac8c93b..8cb918fb 100644 --- a/src/mqtt/hasp_mqtt_pubsubclient.cpp +++ b/src/mqtt/hasp_mqtt_pubsubclient.cpp @@ -343,7 +343,6 @@ void mqttSetup() IRAM_ATTR void mqttLoop(void) { - // if(mqttEnabled) mqttClient.loop(); } @@ -355,11 +354,6 @@ void mqttEvery5Seconds(bool networkIsConnected) } } -// String mqttGetNodename() -// { -// return mqttNodeName; -// } - void mqttStop() { if(mqttEnabled && mqttClient.connected()) {