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