MQTT::clean_session

Description

This command gets or sets the clean_session flag of MQTT CONNECT messages.

Syntax

MQTT::clean_session [0 | 1]

MQTT::clean_session

  • Get the clean_session flag of MQTT CONNECT message.

MQTT::clean_session 0

  • Clear the clean_session flag of MQTT CONNECT message.

MQTT::clean_session 1

  • Set the clean_session flag of MQTT CONNECT message.

Examples