mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
added option to overide MQTT retain (e.g. in shower time and heartbeat messages)
This commit is contained in:
@@ -1076,7 +1076,8 @@ bool do_publishShowerData() {
|
||||
|
||||
myDebugLog("Publishing shower data via MQTT");
|
||||
|
||||
return (myESP.mqttPublish(TOPIC_SHOWER_DATA, data));
|
||||
// Publish MQTT forcing retain to be off
|
||||
return (myESP.mqttPublish(TOPIC_SHOWER_DATA, data, false));
|
||||
}
|
||||
|
||||
// callback for custom settings when showing Stored Settings with the 'set' command
|
||||
|
||||
Reference in New Issue
Block a user