set dump raw
parent
b4785b77df
commit
7d8699963c
|
|
@ -45,4 +45,5 @@ async def to_code(config):
|
||||||
# Apply configuration to the C++ component
|
# Apply configuration to the C++ component
|
||||||
cg.add(var.set_receive_timeout(config[CONF_RECEIVE_TIMEOUT]))
|
cg.add(var.set_receive_timeout(config[CONF_RECEIVE_TIMEOUT]))
|
||||||
cg.add(var.set_show_log(config[CONF_SHOW_LOG]))
|
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]))
|
cg.add(var.set_custom_pattern(config[CONF_CUSTOM_PATTERN]))
|
||||||
|
|
@ -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_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_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; }
|
void set_custom_pattern(const std::string &pattern) { this->custom_pattern_ = pattern; }
|
||||||
|
|
||||||
#ifdef USE_SENSOR
|
#ifdef USE_SENSOR
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue