do not dispose
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Torma Kristóf 2020-10-21 02:45:14 +02:00
parent e8c69f7d53
commit 69d62cb50b
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
1 changed files with 3 additions and 1 deletions

View File

@ -54,12 +54,14 @@ fun Application.module(testing: Boolean = false) {
is PartData.FormItem -> {
if (part.name == "description") {
println("Sending MQTT Message")
try {
}
val msgObj: MessageObject = gson.fromJson(part.value,MessageObject::class.java)
mqttClient.publish("command/${msgObj.device_id}", message)
}
}
}
part.dispose()
}
call.respond("1")
}