mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 05:06:44 +00:00
Remove literal string
This commit is contained in:
parent
3e797265fb
commit
793a775c49
@ -447,8 +447,8 @@ void mqttReconnect()
|
|||||||
{
|
{
|
||||||
char msg[8];
|
char msg[8];
|
||||||
snprintf_P(msg, sizeof(msg), mqttFirstConnect ? PSTR("OFF") : PSTR("ON"));
|
snprintf_P(msg, sizeof(msg), mqttFirstConnect ? PSTR("OFF") : PSTR("ON"));
|
||||||
mqttClient.publish(buffer, msg, true); // Literal String
|
|
||||||
|
|
||||||
|
mqttClient.publish(buffer, msg, true);
|
||||||
Log.notice(TAG_MQTT, F("binary_sensor state: [%sstatus] : %s"), mqttNodeTopic, msg);
|
Log.notice(TAG_MQTT, F("binary_sensor state: [%sstatus] : %s"), mqttNodeTopic, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user