open fun disconnect(): MqttClient
Disconnects from the MQTT server
Return
current MQTT client instance
open fun disconnect(disconnectHandler: Handler<AsyncResult<Void>>): MqttClient
Disconnects from the MQTT server calling disconnectHandler after disconnection
disconnectHandler - handler called when asynchronous disconnect call ends
Return
current MQTT client instance