From 7d8699963c6e98abd7aa59fc0b41ee4a45c3deaf Mon Sep 17 00:00:00 2001 From: Tomer27cz Date: Thu, 19 Mar 2026 18:49:42 +0100 Subject: [PATCH] set dump raw --- components/dlms_push/__init__.py | 1 + components/dlms_push/dlms_push.h | 1 + 2 files changed, 2 insertions(+) diff --git a/components/dlms_push/__init__.py b/components/dlms_push/__init__.py index d3691c9..909dbca 100644 --- a/components/dlms_push/__init__.py +++ b/components/dlms_push/__init__.py @@ -45,4 +45,5 @@ async def to_code(config): # Apply configuration to the C++ component cg.add(var.set_receive_timeout(config[CONF_RECEIVE_TIMEOUT])) cg.add(var.set_show_log(config[CONF_SHOW_LOG])) + cg.add(var.set_dump_raw(config[CONF_DUMP_RAW])) cg.add(var.set_custom_pattern(config[CONF_CUSTOM_PATTERN])) \ No newline at end of file diff --git a/components/dlms_push/dlms_push.h b/components/dlms_push/dlms_push.h index 6175a61..b759d4f 100644 --- a/components/dlms_push/dlms_push.h +++ b/components/dlms_push/dlms_push.h @@ -34,6 +34,7 @@ class DlmsPushComponent : public Component, public uart::UARTDevice { void set_receive_timeout(uint32_t timeout_ms) { this->receive_timeout_ms_ = timeout_ms; } void set_show_log(bool show_log) { this->show_log_ = show_log; } + void set_dump_raw(bool dump_raw) { this->dump_raw_ = dump_raw; } void set_custom_pattern(const std::string &pattern) { this->custom_pattern_ = pattern; } #ifdef USE_SENSOR