10static const char *
const TAG = 
"tmp117";
 
   18  if ((uint16_t) 
data != 0x8000) {
 
   21    ESP_LOGD(TAG, 
"Got temperature=%.2f°C", 
temperature);
 
   25    ESP_LOGD(TAG, 
"TMP117 not ready");
 
 
   41  ESP_LOGD(TAG, 
"TMP117:");
 
   44    ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
 
   46  LOG_SENSOR(
"  ", 
"Temperature", 
this);
 
 
   51    ESP_LOGW(TAG, 
"Updating TMP117 failed!");
 
 
   59    ESP_LOGW(TAG, 
"Reading TMP117 config failed!");
 
 
   67    ESP_LOGE(TAG, 
"Writing TMP117 config failed!");
 
 
 
virtual void mark_failed()
Mark this component as failed.
void status_set_warning(const char *message=nullptr)
void status_clear_warning()
bool read_byte_16(uint8_t a_register, uint16_t *data)
bool write_byte_16(uint8_t a_register, uint16_t data) const
void publish_state(float state)
Publish a new state to the front-end.
bool write_config_(uint16_t config)
void dump_config() override
float get_setup_priority() const override
bool read_config_(uint16_t *config)
bool read_data_(int16_t *data)
const float DATA
For components that import data from directly connected sensors like DHT.
Providing packet encoding functions for exchanging data with a remote host.