类 TcpMaster


public class TcpMaster extends ModbusMaster

TcpMaster class.

  • 构造器详细资料

    • TcpMaster

      public TcpMaster(IpParameters params, boolean keepAlive, boolean autoIncrementTransactionId, boolean validateResponse, Integer lingerTime)

      Constructor for TcpMaster.

      参数:
      params -
      keepAlive -
      autoIncrementTransactionId -
      validateResponse - - confirm that requested slave id is the same in the response
      lingerTime - The setting only affects socket close.
    • TcpMaster

      public TcpMaster(IpParameters params, boolean keepAlive, boolean autoIncrementTransactionId, boolean validateResponse)

      Constructor for TcpMaster.

      Default to lingerTime disabled
      参数:
      params -
      keepAlive -
      autoIncrementTransactionId -
      validateResponse - - confirm that requested slave id is the same in the response
    • TcpMaster

      public TcpMaster(IpParameters params, boolean keepAlive, boolean autoIncrementTransactionId)

      Constructor for TcpMaster.

      Default to not validating the slave id in responses Default to lingerTime disabled
      参数:
      params - a IpParameters object.
      keepAlive - a boolean.
      autoIncrementTransactionId - a boolean.
    • TcpMaster

      public TcpMaster(IpParameters params, boolean keepAlive, Integer lingerTime)

      Constructor for TcpMaster.

      Default to auto increment transaction id Default to not validating the slave id in responses Default to lingerTime disabled
      参数:
      params - a IpParameters object.
      keepAlive - a boolean.
      lingerTime - an Integer. The setting only affects socket close.
    • TcpMaster

      public TcpMaster(IpParameters params, boolean keepAlive)

      Constructor for TcpMaster.

      Default to auto increment transaction id Default to not validating the slave id in responses Default to lingerTime disabled
      参数:
      params - a IpParameters object.
      keepAlive - a boolean.
  • 方法详细资料