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