MQTT::dup

Description

This command gets or sets the duplicate flag of MQTT PUBLISH messages.

Syntax

MQTT::dup [0 | 1]

MQTT::dup

  • Get the duplicate flag of MQTT PUBLISH message.

MQTT::dup 0

  • Reset the duplicate flag of MQTT PUBLISH message. This will convert the message to as if it was the first occasion that client or server has attempted to send this MQTT PUBLISH message.

MQTT::dup 1

  • Set the duplicate flag of MQTT PUBLISH message. This will convert the message to as if the message was a redelivery of an earlier attempt to send the message.

Examples