MQTTClient.connected

Overview

Used to determine if the MQTTClient is currently connected.

Added in version 2.1.13

Format

var mqttClient = new MQTTClient(options);

//...

var connected = mqttClient.connected;

Value Description Type Required
connected The result is true if the MQTTClient is successfully connected Boolean Return

See Example 2 in MQTTClient constructor.