supla-device
Loading...
Searching...
No Matches
therm_hygro_press_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_THERM_HYGRO_PRESS_METER_H_
5#define SRC_SUPLA_SENSOR_THERM_HYGRO_PRESS_METER_H_
6
7#include "therm_hygro_meter.h"
8
9#define PRESSURE_NOT_AVAILABLE -1.0
10
11namespace Supla {
12namespace Sensor {
14 public:
16 virtual ~ThermHygroPressMeter();
17 virtual double getPressure();
18 void iterateAlways() override;
19 bool iterateConnected() override;
20 Element &disableChannelState();
21 Channel *getSecondaryChannel() override;
22 const Channel *getSecondaryChannel() const override;
23
24 // Override local action methods in order to delegate execution to Channel and
25 // Secondary Channel
26 void addAction(uint16_t action, ActionHandler &client, uint16_t event,
27 bool alwaysEnabled = false) override;
28 void addAction(uint16_t action, ActionHandler *client, uint16_t event,
29 bool alwaysEnabled = false) override;
30
31 protected:
32 Channel pressureChannel;
33};
34
35}; // namespace Sensor
36}; // namespace Supla
37
38#endif // SRC_SUPLA_SENSOR_THERM_HYGRO_PRESS_METER_H_
Definition action_handler.h:8
Definition channel.h:26
Base class for all elements of SuplaDevice.
Definition element.h:27
Definition therm_hygro_meter.h:14
Definition therm_hygro_press_meter.h:13
void iterateAlways() override
Method called on each SuplaDevice iteration.
Definition therm_hygro_press_meter.cpp:20
bool iterateConnected() override
Method called on each SuplaDevice iteration when device is connected and registered to Supla server o...
Definition therm_hygro_press_meter.cpp:27