This commit is contained in:
parent
69d62cb50b
commit
95ffaeddc8
@ -54,9 +54,6 @@ fun Application.module(testing: Boolean = false) {
|
|||||||
is PartData.FormItem -> {
|
is PartData.FormItem -> {
|
||||||
if (part.name == "description") {
|
if (part.name == "description") {
|
||||||
println("Sending MQTT Message")
|
println("Sending MQTT Message")
|
||||||
try {
|
|
||||||
|
|
||||||
}
|
|
||||||
val msgObj: MessageObject = gson.fromJson(part.value,MessageObject::class.java)
|
val msgObj: MessageObject = gson.fromJson(part.value,MessageObject::class.java)
|
||||||
mqttClient.publish("command/${msgObj.device_id}", message)
|
mqttClient.publish("command/${msgObj.device_id}", message)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user