ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
sdp3x.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome::sdp3x {
7
8class SDP3XComponent final : public PollingComponent,
10 public sensor::Sensor {
11 public:
13 explicit SDP3XComponent(uint16_t start_command) : start_command_(start_command) {}
14
15 void update() override;
16 void setup() override;
17 void dump_config() override;
18
19 protected:
21 uint16_t product_id_{0};
22};
23
24} // namespace esphome::sdp3x
This class simplifies creating components that periodically check a state.
Definition component.h:532
SDP3XComponent(uint16_t start_command)
start_command selects the measurement mode (differential pressure or mass flow).
Definition sdp3x.h:13
void dump_config() override
Definition sdp3x.cpp:55
Base-class for all sensors.
Definition sensor.h:48