mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 12:46:34 +00:00
Update xdrv_02_mqtt.ino
This commit is contained in:
parent
507e075bc1
commit
10df74e0bf
@ -377,6 +377,7 @@ void MqttPublish(const char* topic, bool retained) {
|
|||||||
*/
|
*/
|
||||||
String log_data = slog_type;
|
String log_data = slog_type;
|
||||||
log_data += (Settings.flag.mqtt_enabled) ? topic : strrchr(topic,'/')+1;
|
log_data += (Settings.flag.mqtt_enabled) ? topic : strrchr(topic,'/')+1;
|
||||||
|
log_data += F(" = ");
|
||||||
log_data += TasmotaGlobal.mqtt_data;
|
log_data += TasmotaGlobal.mqtt_data;
|
||||||
log_data += sretained;
|
log_data += sretained;
|
||||||
AddLogData(LOG_LEVEL_INFO, log_data.c_str());
|
AddLogData(LOG_LEVEL_INFO, log_data.c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user