Skip to content

Commit

Permalink
SwitchDamper: threshold is now a JMX accessible attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
climategadgets committed May 18, 2021
1 parent d793622 commit fb66277
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.IOException;

import com.homeclimatecontrol.jukebox.jmx.JmxAttribute;
import org.apache.logging.log4j.ThreadContext;

import net.sf.dz3.device.sensor.Switch;
Expand Down Expand Up @@ -207,4 +208,13 @@ public JmxDescriptor getJmxDescriptor() {
Integer.toHexString(hashCode()),
"Controls a switch that controls a damper");
}

@JmxAttribute(description = "threshold")
public double getThreshold() {
return threshold;
}

public void setThreshold(double threshold) {
this.threshold = threshold;
}
}

0 comments on commit fb66277

Please sign in to comment.