set dump raw

main
Tomer27cz 2026-03-19 18:49:42 +01:00
parent b4785b77df
commit 7d8699963c
2 changed files with 2 additions and 0 deletions

View File

@ -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]))

View File

@ -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