Code clean-up

This commit is contained in:
fvanroie 2021-06-26 19:18:03 +02:00
parent 2d31165fe0
commit 3554296469
2 changed files with 0 additions and 7 deletions

View File

@ -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);
}

View File

@ -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()) {