Enum PlccomMqttProtocolVersion

  • All Implemented Interfaces:
    Serializable, Comparable<PlccomMqttProtocolVersion>

    public enum PlccomMqttProtocolVersion
    extends Enum<PlccomMqttProtocolVersion>
    MQTT protocol version requested by a PLCcom MQTT client connection.

    AUTO lets the client select the broadest compatible protocol: it first tries MQTT 5.0 and falls back to MQTT 3.1.1 only when the broker clearly rejects the protocol version during connection negotiation.

    • Method Detail

      • values

        public static PlccomMqttProtocolVersion[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PlccomMqttProtocolVersion c : PlccomMqttProtocolVersion.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PlccomMqttProtocolVersion valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isConcreteVersion

        public boolean isConcreteVersion()
        Returns whether this value names a concrete wire protocol version.
        Returns:
        true for MQTT 3.1.1 and MQTT 5.0, false for AUTO
      • getDisplayName

        public String getDisplayName()
        Returns a human-readable version label.
        Returns:
        display label suitable for diagnostics and simple UI choices