9static const char *
const TAG =
"tmp117";
17 if ((uint16_t) data != 0x8000) {
23 ESP_LOGD(TAG,
"Not ready");
39 ESP_LOGCONFIG(TAG,
"TMP117:");
42 ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
44 LOG_SENSOR(
" ",
"Temperature",
this);
49 ESP_LOGW(TAG,
"Updating failed");
57 ESP_LOGW(TAG,
"Reading config failed");
65 ESP_LOGE(TAG,
"Writing config failed");
void mark_failed()
Mark this component as failed.
void status_set_warning()
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
bool read_config_(uint16_t *config)
bool read_data_(int16_t *data)