ESPHome  2022.6.2
aht10.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 namespace esphome {
8 namespace aht10 {
9 
11  public:
12  void setup() override;
13  void update() override;
14  void dump_config() override;
15  float get_setup_priority() const override;
16 
17  void set_temperature_sensor(sensor::Sensor *temperature_sensor) { temperature_sensor_ = temperature_sensor; }
18  void set_humidity_sensor(sensor::Sensor *humidity_sensor) { humidity_sensor_ = humidity_sensor; }
19 
20  protected:
23 };
24 
25 } // namespace aht10
26 } // namespace esphome
void set_temperature_sensor(sensor::Sensor *temperature_sensor)
Definition: aht10.h:17
sensor::Sensor * humidity_sensor_
Definition: aht10.h:22
This class simplifies creating components that periodically check a state.
Definition: component.h:266
void update() override
Definition: aht10.cpp:63
void dump_config() override
Definition: aht10.cpp:134
sensor::Sensor * temperature_sensor_
Definition: aht10.h:21
void set_humidity_sensor(sensor::Sensor *humidity_sensor)
Definition: aht10.h:18
float get_setup_priority() const override
Definition: aht10.cpp:132
Definition: a4988.cpp:4
Base-class for all sensors.
Definition: sensor.h:47
void setup() override
Definition: aht10.cpp:29