08.06.2017, 16:24
It works but only when TV is on(not in standby mode). After switching off TV script receive nothing only timeout or connection refused. In documentation there is such info:
"TCP connections are kept among requests but they are disconnected by server if no command is sent from client in 30 seconds."
So I tried sending every 20 seconds ask for power status. But it is not enough.
How can I keep the connection? And also could someone prepare a sample for establishing TCP connection which can receive some info from TV only on event?
"TCP connections are kept among requests but they are disconnected by server if no command is sent from client in 30 seconds."
So I tried sending every 20 seconds ask for power status. But it is not enough.
How can I keep the connection? And also could someone prepare a sample for establishing TCP connection which can receive some info from TV only on event?