3 #include "../sml_parser.h" 8 static const char *
const TAG =
"sml_sensor";
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());
std::string bytes_repr(const bytes &buffer)
int64_t bytes_to_int(const bytes &buffer)
uint64_t bytes_to_uint(const bytes &buffer)
void dump_config() override
void publish_state(float state)
Publish a new state to the front-end.
void publish_val(const ObisInfo &obis_info) override
Implementation of SPI Controller mode.
SmlSensor(std::string server_id, std::string obis_code)
std::string code_repr() const