mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
Merge pull request #3614 from ascillato/patch-1
Added Optional Retain Flag for Energy Margins
This commit is contained in:
commit
93b0c57ce9
@ -752,7 +752,7 @@ void EnergyMarginCheck()
|
||||
}
|
||||
if (jsonflg) {
|
||||
snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s}"), mqtt_data);
|
||||
MqttPublishPrefixTopic_P(TELE, PSTR(D_RSLT_MARGINS));
|
||||
MqttPublishPrefixTopic_P(TELE, PSTR(D_RSLT_MARGINS), MQTT_TELE_RETAIN);
|
||||
EnergyMqttShow();
|
||||
}
|
||||
}
|
||||
@ -1238,4 +1238,4 @@ boolean Xsns03(byte function)
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif // USE_ENERGY_SENSOR
|
||||
#endif // USE_ENERGY_SENSOR
|
||||
|
Loading…
x
Reference in New Issue
Block a user