fun main(){ val mqtt = MqttSubscriber() mqtt.connect() Thread.sleep(10000) mqtt.disconnect() }