7static const char *
const TAG =
"resistance";
10 LOG_SENSOR(
"",
"Resistance Sensor",
this);
12 " Configuration: %s\n"
14 " Reference Voltage: %.1fV",
19 if (std::isnan(value)) {
42 ESP_LOGD(TAG,
"'%s' - Resistance %.1fΩ", this->
name_.
c_str(), res);
constexpr const char * c_str() const
ResistanceConfiguration configuration_
void process_(float value)
void dump_config() override
void publish_state(float state)
Publish a new state to the front-end.
Providing packet encoding functions for exchanging data with a remote host.