isConnected

open fun isConnected(): Boolean

Returns a boolean that tells if the Mqtt client is currently connected

Return

a boolean representation of the MqttClient connection