8static const char *
const TAG =
"sml_sensor";
11 :
SmlListener(std::move(server_id), std::move(obis_code)) {}
25 ESP_LOGW(TAG,
"No number conversion for (%s) %s. Consider using SML TextSensor instead.",
33 LOG_SENSOR(
"",
"SML",
this);
35 ESP_LOGCONFIG(TAG,
" Server ID: %s", this->
server_id.c_str());
37 ESP_LOGCONFIG(TAG,
" OBIS Code: %s", this->
obis_code.c_str());
void publish_state(float state)
Publish a new state to the front-end.
std::string code_repr() const
void dump_config() override
void publish_val(const ObisInfo &obis_info) override
SmlSensor(std::string server_id, std::string obis_code)
std::string bytes_repr(const BytesView &buffer)
int64_t bytes_to_int(const BytesView &buffer)
uint64_t bytes_to_uint(const BytesView &buffer)
Providing packet encoding functions for exchanging data with a remote host.