connect

open fun connect(cleanSession: Boolean)

Connects to an Mqtt client

Parameters

cleanSession

Is the session a cleanSession

Throws

MqttException

exception