8static const char *
const TAG =
"lm75b";
11 ESP_LOGCONFIG(TAG,
"LM75B:");
14 ESP_LOGE(TAG,
"Setting up LM75B failed!");
16 LOG_UPDATE_INTERVAL(
this);
17 LOG_SENSOR(
" ",
"Temperature",
this);
28 int16_t raw_temperature = (buff[0] << 8) | buff[1];
30 raw_temperature >>= 5;
void status_set_warning(const char *message=nullptr)
bool status_has_warning() const
void status_clear_warning()
ErrorCode read_register(uint8_t a_register, uint8_t *data, size_t len)
reads an array of bytes from a specific register in the I²C device
void dump_config() override
void publish_state(float state)
Publish a new state to the front-end.
@ ERROR_OK
No error found during execution of method.
Providing packet encoding functions for exchanging data with a remote host.