supla-device
Loading...
Searching...
No Matches
virtual_therm_hygro_meter.h
1// SPDX-FileCopyrightText: AC SOFTWARE SP. Z O.O.
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#ifndef SRC_SUPLA_SENSOR_VIRTUAL_THERM_HYGRO_METER_H_
5#define SRC_SUPLA_SENSOR_VIRTUAL_THERM_HYGRO_METER_H_
6
7#include "therm_hygro_meter.h"
8
9namespace Supla {
10namespace Sensor {
12 public:
13 double getTemp() override {
14 return temperature;
15 }
16
17 double getHumi() override {
18 return humidity;
19 }
20
21 void setTemp(double val) {
22 temperature = val;
23 }
24
25 void setHumi(double val) {
26 humidity = val;
27 }
28
29 protected:
30 double temperature = TEMPERATURE_NOT_AVAILABLE;
31 double humidity = HUMIDITY_NOT_AVAILABLE;
32};
33}; // namespace Sensor
34}; // namespace Supla
35
36#endif // SRC_SUPLA_SENSOR_VIRTUAL_THERM_HYGRO_METER_H_
Definition therm_hygro_meter.h:14
Definition virtual_therm_hygro_meter.h:11