supla-device
Loading...
Searching...
No Matches
src
supla
sensor
virtual_hygromometer.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_HYGROMOMETER_H_
5
#define SRC_SUPLA_SENSOR_VIRTUAL_HYGROMOMETER_H_
6
7
#include "hygro_meter.h"
8
9
namespace
Supla {
10
namespace
Sensor {
11
class
VirtualHygroMeter
:
public
Supla::Sensor::HygroMeter
{
12
public
:
13
double
getHumi()
override
{
14
return
humidity;
15
}
16
void
setValue(
double
val) {
17
humidity = val;
18
}
19
20
protected
:
21
double
humidity = HUMIDITY_NOT_AVAILABLE;
22
};
23
};
// namespace Sensor
24
};
// namespace Supla
25
26
27
#endif
// SRC_SUPLA_SENSOR_VIRTUAL_HYGROMOMETER_H_
Supla::Sensor::HygroMeter
Definition
hygro_meter.h:12
Supla::Sensor::VirtualHygroMeter
Definition
virtual_hygromometer.h:11
Generated by
1.12.0