|
|
@ -40,6 +40,10 @@ public class DiActHeaterTokyGteModbusRtuOverTcp extends DiActuatorBase implement |
|
|
|
@Override |
|
|
|
public Integer getTemperature() { |
|
|
|
var con = DiConModbusRTUOverTCP.getConnection(this.host, this.port); |
|
|
|
return con.readHoldingRegister(this.slaveId,0x2010); |
|
|
|
try { |
|
|
|
return con.readHoldingRegister(this.slaveId,0x2010); |
|
|
|
} catch ( RuntimeException e ) { |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |