ESPHome  2022.12.8
hdc1080.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace hdc1080 {
9 
11  public:
13  void set_humidity(sensor::Sensor *humidity) { humidity_ = humidity; }
14 
16  void setup() override;
17  void dump_config() override;
19  void update() override;
20 
21  float get_setup_priority() const override;
22 
23  protected:
26 };
27 
28 } // namespace hdc1080
29 } // namespace esphome
void update() override
Retrieve the latest sensor values. This operation takes approximately 16ms.
Definition: hdc1080.cpp:40
sensor::Sensor * temperature_
Definition: hdc1080.h:24
sensor::Sensor * humidity_
Definition: hdc1080.h:25
void setup() override
Setup the sensor and check for connection.
Definition: hdc1080.cpp:15
float temperature
Definition: qmp6988.h:71
This class simplifies creating components that periodically check a state.
Definition: component.h:267
void set_humidity(sensor::Sensor *humidity)
Definition: hdc1080.h:13
void set_temperature(sensor::Sensor *temperature)
Definition: hdc1080.h:12
float get_setup_priority() const override
Definition: hdc1080.cpp:72
Definition: a4988.cpp:4
Base-class for all sensors.
Definition: sensor.h:50