ESPHome 2025.5.0
Loading...
Searching...
No Matches
aqi_calculator_factory.h
Go to the documentation of this file.
1#pragma once
2
3#include "caqi_calculator.h"
4#include "aqi_calculator.h"
5
6namespace esphome {
7namespace hm3301 {
8
10
12 public:
14 if (type == 0) {
15 return caqi_calculator_;
16 } else if (type == 1) {
17 return aqi_calculator_;
18 }
19
20 return nullptr;
21 }
22
23 protected:
26};
27
28} // namespace hm3301
29} // namespace esphome
AbstractAQICalculator * get_calculator(AQICalculatorType type)
uint8_t type
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7