|
@ -116,6 +116,14 @@ abstract public class DiActuatorBase implements DiActuator { |
|
|
return this.device.call(cmd, this.mid, args); |
|
|
return this.device.call(cmd, this.mid, args); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// set reg value |
|
|
|
|
|
public void setRegValue(Integer index, Integer value) { |
|
|
|
|
|
if ( null == value ) { |
|
|
|
|
|
return ; |
|
|
|
|
|
} |
|
|
|
|
|
this.call(DiCommand.MODULE_SET_REG, index, value); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// get location value |
|
|
// get location value |
|
|
public Integer getLocationValue(String key, Object ... args ) { |
|
|
public Integer getLocationValue(String key, Object ... args ) { |
|
|
StringBuilder keyBuilder = new StringBuilder(key); |
|
|
StringBuilder keyBuilder = new StringBuilder(key); |
|
|