This commit is contained in:
parent
e8c69f7d53
commit
69d62cb50b
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user