public class MqttPingReq extends MqttWireMessage
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY |
MESSAGE_TYPE_CONNACK, MESSAGE_TYPE_CONNECT, MESSAGE_TYPE_DISCONNECT, MESSAGE_TYPE_PINGREQ, MESSAGE_TYPE_PINGRESP, MESSAGE_TYPE_PUBACK, MESSAGE_TYPE_PUBCOMP, MESSAGE_TYPE_PUBLISH, MESSAGE_TYPE_PUBREC, MESSAGE_TYPE_PUBREL, MESSAGE_TYPE_SUBACK, MESSAGE_TYPE_SUBSCRIBE, MESSAGE_TYPE_UNSUBACK, MESSAGE_TYPE_UNSUBSCRIBE
Constructor and Description |
---|
MqttPingReq() |
MqttPingReq(byte info,
byte[] variableHeader) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Returns a key associated with the message.
|
boolean |
isMessageIdRequired()
Returns
false as message IDs are not required for MQTT
PINGREQ messages. |
createWireMessage, createWireMessage, getHeader, getMessageId, getPayload, getType, isRetryable, setDuplicate, setMessageId, toString
public static final java.lang.String KEY
public MqttPingReq()
public MqttPingReq(byte info, byte[] variableHeader) throws java.io.IOException
java.io.IOException
public boolean isMessageIdRequired()
false
as message IDs are not required for MQTT
PINGREQ messages.isMessageIdRequired
in class MqttWireMessage
public java.lang.String getKey()
MqttWireMessage
getKey
in class MqttWireMessage