4#ifndef SRC_SUPLA_SENSOR_PRESSURE_H_
5#define SRC_SUPLA_SENSOR_PRESSURE_H_
7#include <supla/channel_element.h>
10#define PRESSURE_NOT_AVAILABLE -1.0
17 channel.setType(SUPLA_CHANNELTYPE_PRESSURESENSOR);
19 channel.setNewValue(PRESSURE_NOT_AVAILABLE);
22 virtual double getValue() {
23 return PRESSURE_NOT_AVAILABLE;
27 if (millis() - lastReadTime > 10000) {
28 lastReadTime = millis();
29 channel.setNewValue(getValue());
34 uint32_t lastReadTime;
Definition channel_element.h:15
void setDefaultFunction(uint32_t function)
Set default function.
Definition channel.cpp:324
void iterateAlways()
Method called on each SuplaDevice iteration.
Definition pressure.h:26