MQTT::keep_alive

Description

This command gets or sets the keep_alive field of MQTT CONNECT message.

Syntax

MQTT::keep_alive [<keepalive_seconds>]

MQTT::keep_alive

  • Get the keep_alive field of MQTT CONNECT message.

MQTT::keep_alive <keepalive_seconds>

  • Set the keep_alive field of MQTT CONNECT message to specified number. The number must be smaller than 65536.

Examples