remove debug println
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-10-21 03:15:31 +02:00
parent 95ffaeddc8
commit bbd010c606
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -36,7 +36,6 @@ fun Application.module(testing: Boolean = false) {
connOpts.password = appConfig.property("ktor.mq.password").getString().toCharArray()
mqttClient.connect(connOpts)
message.qos = 0
mqttClient.publish("benchmark/startup", message)
}
environment.monitor.subscribe(ApplicationStopped){
@ -53,7 +52,6 @@ fun Application.module(testing: Boolean = false) {
when (part) {
is PartData.FormItem -> {
if (part.name == "description") {
println("Sending MQTT Message")
val msgObj: MessageObject = gson.fromJson(part.value,MessageObject::class.java)
mqttClient.publish("command/${msgObj.device_id}", message)
}