From 321bfc34477f148ab8a5a4781110197691804fe8 Mon Sep 17 00:00:00 2001 From: Patrick Amrhein Date: Mon, 3 Jun 2024 13:15:26 +0200 Subject: [PATCH] 0.8.1230002 --- src/defines.h | 2 +- src/plugins/zeroExport/zeroExport.h | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/defines.h b/src/defines.h index d7a4927d..24e1a30e 100644 --- a/src/defines.h +++ b/src/defines.h @@ -13,7 +13,7 @@ //------------------------------------- #define VERSION_MAJOR 0 #define VERSION_MINOR 8 -#define VERSION_PATCH 1230001 +#define VERSION_PATCH 1230002 //------------------------------------- typedef struct { uint8_t ch; diff --git a/src/plugins/zeroExport/zeroExport.h b/src/plugins/zeroExport/zeroExport.h index 28d792db..fa5ce459 100644 --- a/src/plugins/zeroExport/zeroExport.h +++ b/src/plugins/zeroExport/zeroExport.h @@ -385,7 +385,7 @@ class ZeroExport { // MQTT - Inverter if (mMqtt->isConnected()) { - mqttPublish(String("zero/state/groups/" + String(group) + "/inverter/" + String(inv)).c_str(), mDocLog.as().c_str()); + mqttPublish(String("zero/state/groups/" + String(group) + "/inverter/" + String(inv)).c_str(), _log.toString().c_str()); } sendLog(); @@ -915,13 +915,11 @@ class ZeroExport { } // Log over MQTT -/// BUG: 004 Anfang -// if (mCfg->log_over_mqtt) { -// if (mMqtt->isConnected()) { -// mMqtt->publish("zero/log", mDocLog.as().c_str(), false); -// } -// } -/// BUG: 004 Ende + if (mCfg->log_over_mqtt) { + if (mMqtt->isConnected()) { + mMqtt->publish("zero/log", _log.toString().c_str(), false); + } + } } /** clearLog