Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TCP/IP server and client
#4
I am sorry, you are right the function is called serverside, it works.

But now I want to test it from outside by using an android smartphone, I used tasker to create a simple HTTP-post.
I think you can't give much feedback on this because it's about sending an http-post from outside QM's scope (and it involves android).
But any tip you can give is very welcome. (If someone else has experience with this, your feedback is very welcome!)

But I get the below output (and below error in tasker (android app)):

   

I needed to send some string, so I send "%BLUE" which is the blue-tooth status ("on" or "off")

   

EDIT:

SORRY, forgot to mention the following error which happens when I send the above HTTP-post in tasker (see above android screenshot)

Quote:17.34.40/Variables doreplresult: |%BLUE| -> |off|
17.34.40/E prot: http:// serverport: 192.168.0.189:5032 contenttype: application/x-www-form-urlencoded
17.34.40/E get/head or null
17.34.40/E bad attribute: no =: off
17.34.40/E method: POST url: http://192.168.0.189:5032 timout: 10000 dataisfile false save null
17.34.40/WakeLockManager setClearAlarm: not setting, last set 9 ago
17.34.40/WakeLockManager setClearAlarm: not setting, last set 13 ago
17.34.40/E body isfile: false cont: null
17.34.50/E Input/Output error for http://192.168.0.189:5032: java.net.SocketTimeoutException. <============ ERROR


EDIT2:
When I set the content type to "text", I now get the correct response in QM (output = "off").
But I still get the error:
/E Input/Output error for http://192.168.0.189:5032: java.net.SocketTimeoutException

Maybe just accept it as it is (ignore it?).
Any feedback (if possible) is still welcome!


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)