public class ModbusIpDataSource extends ModbusDataSource
Modifier and Type | Field and Description |
---|---|
private ModbusIpDataSourceVO |
configuration |
static org.apache.commons.logging.Log |
LOG |
private com.serotonin.modbus4j.ModbusMaster |
modbusMaster |
private DataPointRT |
socketMonitor |
DATA_SOURCE_EXCEPTION_EVENT, POINT_READ_EXCEPTION_EVENT, POINT_WRITE_EXCEPTION_EVENT
dataPoints, pointListChanged
addedChangedPoints, ATTR_DISCONNECTED_KEY, ATTR_UNRELIABLE_KEY, pointListChangeLock, removedPoints
Constructor and Description |
---|
ModbusIpDataSource(ModbusIpDataSourceVO configuration) |
Modifier and Type | Method and Description |
---|---|
void |
addDataPoint(DataPointRT dataPoint) |
protected void |
doPoll(long time) |
void |
initialize() |
void |
removeDataPoint(DataPointRT dataPoint) |
createModbusLocator, forcePointRead, getLocalExceptionMessage, initialize, localExceptionMessage, receivedException, setPointValue, terminate
beginPolling, joinTermination, scheduleTimeout, setPollingPeriod, updateChangedPoints
getExceptionMessage, getId, getName, getPersistentData, getSerialExceptionMessage, raiseEvent, relinquish, returnToNormal, setPersistentData
private final ModbusIpDataSourceVO configuration
private com.serotonin.modbus4j.ModbusMaster modbusMaster
public static final org.apache.commons.logging.Log LOG
private DataPointRT socketMonitor
public ModbusIpDataSource(ModbusIpDataSourceVO configuration)
public void addDataPoint(DataPointRT dataPoint)
addDataPoint
in class ModbusDataSource
protected void doPoll(long time)
doPoll
in class ModbusDataSource
public void removeDataPoint(DataPointRT dataPoint)
removeDataPoint
in class ModbusDataSource
public void initialize()
initialize
in interface com.serotonin.util.ILifecycle
initialize
in class DataSourceRT