29class Pressure :
public ChannelElement {
31 Pressure() : lastReadTime(0) {
32 channel.setType(SUPLA_CHANNELTYPE_PRESSURESENSOR);
33 channel.setDefaultFunction(SUPLA_CHANNELFNC_PRESSURESENSOR);
34 channel.setNewValue(PRESSURE_NOT_AVAILABLE);
37 virtual double getValue() {
38 return PRESSURE_NOT_AVAILABLE;
42 if (millis() - lastReadTime > 10000) {
43 lastReadTime = millis();
44 channel.setNewValue(getValue());
49 uint32_t lastReadTime;