added option to overide MQTT retain (e.g. in shower time and heartbeat messages)

This commit is contained in:
proddy
2019-10-19 09:35:37 +02:00
parent 0ac4ad3f37
commit 00e707ee21
3 changed files with 14 additions and 6 deletions

View File

@@ -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