This commit is contained in:
@ -41,7 +41,7 @@ fun Application.module(testing: Boolean = false) {
|
||||
}
|
||||
|
||||
routing {
|
||||
get("/") {
|
||||
get("/benchmark") {
|
||||
val requestBody : String = call.receiveText()
|
||||
val msgObj: MessageObject = gson.fromJson(requestBody,MessageObject::class.java)
|
||||
mqttClient.publish("command/${msgObj.device_id}", message)
|
||||
|
Reference in New Issue
Block a user