mqtt-benchmark-component/src/main/kotlin/Main.kt

12 lines
266 B
Kotlin

import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
fun main(){
GlobalScope.launch {
val mqtt = MqttSubscriber()
mqtt.connect()
delay(10000L)
mqtt.disconnect()
}
}