Browse Source

0.8.1230002

pull/1659/head
Patrick Amrhein 10 months ago
parent
commit
321bfc3447
  1. 2
      src/defines.h
  2. 14
      src/plugins/zeroExport/zeroExport.h

2
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;

14
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<std::string>().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<std::string>().c_str(), false);
// }
// }
/// BUG: 004 Ende
if (mCfg->log_over_mqtt) {
if (mMqtt->isConnected()) {
mMqtt->publish("zero/log", _log.toString().c_str(), false);
}
}
}
/** clearLog

Loading…
Cancel
Save