Disconnected

data class Disconnected(val reason: MqttException? = null) : ConnectionState

Not connected to any broker.

Either no connection has been attempted, the last connection was closed by MqttClient.disconnect/MqttClient.close, or it was lost due to a broker-initiated DISCONNECT or transport failure.

Constructors

Link copied to clipboard
constructor(reason: MqttException? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The error that caused the disconnect, or null for an intentional disconnect via MqttClient.disconnect/MqttClient.close and for the initial state before any connection has been attempted.