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_EVENTdataPoints, pointListChangedaddedChangedPoints, 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, terminatebeginPolling, joinTermination, scheduleTimeout, setPollingPeriod, updateChangedPointsgetExceptionMessage, getId, getName, getPersistentData, getSerialExceptionMessage, raiseEvent, relinquish, returnToNormal, setPersistentDataprivate 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 ModbusDataSourceprotected void doPoll(long time)
doPoll in class ModbusDataSourcepublic void removeDataPoint(DataPointRT dataPoint)
removeDataPoint in class ModbusDataSourcepublic void initialize()
initialize in interface com.serotonin.util.ILifecycleinitialize in class DataSourceRT