Class ModbusIPSlaveEndpoint

java.lang.Object
org.openhab.core.io.transport.modbus.endpoint.ModbusIPSlaveEndpoint
All Implemented Interfaces:
ModbusSlaveEndpoint
Direct Known Subclasses:
ModbusTCPSlaveEndpoint, ModbusUDPSlaveEndpoint

@NonNullByDefault public abstract class ModbusIPSlaveEndpoint extends Object implements ModbusSlaveEndpoint
Common base class for ip based endpoints. Endpoint differentiates different modbus slaves only by the ip address (string) and port name.
Author:
Sami Salonen - Initial contribution
  • Constructor Details

    • ModbusIPSlaveEndpoint

      public ModbusIPSlaveEndpoint(String address, int port)
  • Method Details

    • getAddress

      public String getAddress()
    • getPort

      public int getPort()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object