From 69d62cb50b391c86f21540ac7fecaa46d3393290 Mon Sep 17 00:00:00 2001 From: Torma Date: Wed, 21 Oct 2020 02:45:14 +0200 Subject: [PATCH] do not dispose --- src/Application.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Application.kt b/src/Application.kt index 1e7cf8d..a40b613 100644 --- a/src/Application.kt +++ b/src/Application.kt @@ -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") }