7static const char *
const TAG =
"sml_sensor";
10 :
SmlListener(std::move(server_id), std::move(obis_code)) {}
24 ESP_LOGW(TAG,
"No number conversion for (%s) %s. Consider using SML TextSensor instead.",
32 LOG_SENSOR(
"",
"SML",
this);
34 ESP_LOGCONFIG(TAG,
" Server ID: %s", this->
server_id.c_str());
36 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)