mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Code clean-up
This commit is contained in:
parent
2d31165fe0
commit
3554296469
@ -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(tmp_topic, sizeof(tmp_topic), PSTR("%s" MQTT_TOPIC_LWT), mqttNodeTopic);
|
||||||
snprintf_P(msg, sizeof(msg), PSTR("online"));
|
snprintf_P(msg, sizeof(msg), PSTR("online"));
|
||||||
|
|
||||||
// /*bool res =*/mqttClient.publish(tmp_topic, msg, true);
|
|
||||||
mqttPublish(tmp_topic, msg, true);
|
mqttPublish(tmp_topic, msg, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -343,7 +343,6 @@ void mqttSetup()
|
|||||||
|
|
||||||
IRAM_ATTR void mqttLoop(void)
|
IRAM_ATTR void mqttLoop(void)
|
||||||
{
|
{
|
||||||
// if(mqttEnabled)
|
|
||||||
mqttClient.loop();
|
mqttClient.loop();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -355,11 +354,6 @@ void mqttEvery5Seconds(bool networkIsConnected)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// String mqttGetNodename()
|
|
||||||
// {
|
|
||||||
// return mqttNodeName;
|
|
||||||
// }
|
|
||||||
|
|
||||||
void mqttStop()
|
void mqttStop()
|
||||||
{
|
{
|
||||||
if(mqttEnabled && mqttClient.connected()) {
|
if(mqttEnabled && mqttClient.connected()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user