8static const char *
const TAG =
"ads1118.sensor";
11 LOG_SENSOR(
" ",
"ADS1118 Sensor",
this);
12 ESP_LOGCONFIG(TAG,
" Multiplexer: %u", this->
multiplexer_);
13 ESP_LOGCONFIG(TAG,
" Gain: %u", this->
gain_);
23 ESP_LOGD(TAG,
"'%s': Got Voltage=%fV", this->
get_name().c_str(), v);
const StringRef & get_name() const
void dump_config() override
ADS1118Multiplexer multiplexer_
void publish_state(float state)
Publish a new state to the front-end.
Providing packet encoding functions for exchanging data with a remote host.