Package 

Class MqttConnack


  • 
    public class MqttConnack
    extends MqttAck
                        

    An on-the-wire representation of an MQTT CONNACK.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int returnCode
    • Constructor Summary

      Constructors 
      Constructor Description
      MqttConnack(byte info, Array<byte> variableHeader)
    • Method Summary

      Modifier and Type Method Description
      int getReturnCode()
      boolean isMessageIdRequired() Returns whether or not this message needs to include a message ID.
      String getKey() Returns a key associated with the message.
      String toString()
      • Methods inherited from class org.eclipse.paho.client.mqttv3.internal.wire.MqttWireMessage

        createWireMessage, createWireMessage, getHeader, getMessageId, getPayload, getToken, getType, isRetryable, packetName, setDuplicate, setMessageId, setToken
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MqttConnack

        MqttConnack(byte info, Array<byte> variableHeader)
    • Method Detail

      • isMessageIdRequired

         boolean isMessageIdRequired()

        Returns whether or not this message needs to include a message ID.

      • getKey

         String getKey()

        Returns a key associated with the message. For most message types this will be unique. For connect, disconnect and ping only one message of this type is allowed so a fixed key will be returned