7static const char *
const TAG =
"max6675";
22 LOG_SENSOR(
"",
"MAX6675",
this);
23 LOG_PIN(
" CS Pin: ", this->
cs_);
24 LOG_UPDATE_INTERVAL(
this);
31 uint16_t
val = data[1] | (uint16_t(data[0]) << 8);
34 if ((val & 0x04) != 0) {
36 ESP_LOGW(TAG,
"Got invalid value from MAX6675Sensor (0x%04X)",
val);
42 ESP_LOGD(TAG,
"'%s': Got temperature=%.1f°C", this->
name_.
c_str(), temperature);
void status_set_warning(const char *message=nullptr)
ESPDEPRECATED("Use const char* or uint32_t overload instead. Removed in 2026.7.0", "2026.1.0") void set_timeout(const std voi set_timeout)(const char *name, uint32_t timeout, std::function< void()> &&f)
Set a timeout function with a unique name.
ESPDEPRECATED("set_retry is deprecated and will be removed in 2026.8.0. Use set_timeout or set_interval instead.", "2026.2.0") void set_retry(const std uint32_t uint8_t std::function< RetryResult(uint8_t)> && f
void status_clear_warning()
constexpr const char * c_str() const
void dump_config() override
void publish_state(float state)
Publish a new state to the front-end.
void spi_setup() override
void read_array(uint8_t *data, size_t length)
Providing packet encoding functions for exchanging data with a remote host.
void HOT delay(uint32_t ms)