Posts: 336
Threads: 76
Joined: Jun 2017
Reputation:
6
Erwin,
Thank you for help.
Posts: 336
Threads: 76
Joined: Jun 2017
Reputation:
6
Erwin,
Can you explain me a little to me? What parameter socket.http.TIMEOUT does? Also, I made resident script. When I start it nothing going on.. When I stop it - all works - http command sends to device over network.. How to make command to be send without delay, or may be I need something else to add or somehow control this resident script? Sorry, may be simple, but I still not found solution
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
24.06.2017, 22:28
(This post was last modified: 24.06.2017, 22:31 by Erwin van der Zwart.)
Hi,
I't makes the socket wait for max 15 seconds for a response, it's not a delay, just a parameter to wait a bit longer when the response is not fast enough. When the response is received within something like 100 ms the timeout will never be used. You can leave it out, but then it will use the default socket timeout and that one is i believe something like 3 seconds.
In your case the timeout is probably not even needed as you don't use the response, you just send a command to the other device.
There must be another reason why your script is hanging ..
Can you show me what you have build?
BR,
Erwin
Posts: 7773
Threads: 42
Joined: Jun 2015
Reputation:
447
Default timeout is 60 seconds. If you have a resident script then the command is sent in an infinite loop. You probably need an event script to send it only once.
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
Hi
Sorry i missed that you wrote you run it from resident (:
BR,
Erwin
Posts: 336
Threads: 76
Joined: Jun 2017
Reputation:
6
Ervin,
Does it mean I use one group, as example 2/2/2, if I send to it 1 or something else depends of used type in event script - my command will be sent? And also I found that my commands I can send directly from visualization using http type for it.
Posts: 336
Threads: 76
Joined: Jun 2017
Reputation:
6
Erwin,
super, thank you for helping