Commit 77bcb975 authored by Philipp Auersperg's avatar Philipp Auersperg

call server

parent e7844810
......@@ -31,8 +31,14 @@ class MainActivity : AppCompatActivity() {
}
btnSubmit.setOnClickListener {
val res=ProcbridgeClient.request(editCommand.text.toString(), editParams.text.toString())
txtMessage.text=res.toString()
try {
val res = ProcbridgeClient.request(editCommand.text.toString(), editParams.text.toString())
txtMessage.text = res.toString()
txtStatus.text= "OK"
} catch (e: Exception) {
txtMessage.text = e.toString()
txtStatus.text = "Exception"
}
}
}
}
......@@ -10,7 +10,7 @@ delegate = procbridge.Delegate()
@delegate.api
def echo(self, echo, **kw):
print "echo:", echo
time.sleep(3)
# time.sleep(3)
return "Hello:" + echo
@delegate.api
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment