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
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