MQTT::retain

Description

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

Syntax

MQTT::retain [<0 | 1>]

MQTT::retain

  • Get the retain flag of MQTT PUBLISH message.

MQTT::retain 0

  • Reset the retain flag of MQTT PUBLISH message.

MQTT::retain 1

  • Set the retain flag of MQTT PUBLISH message.

Examples