14.07.2016, 16:15
please help me!
Hope everyone has opinions to this problem
!
To determine the status of television, we use the TCP protocol. If the TV is on, the status will return to 1, otherwise it will be empty:
sock = socket.tcp ()
sock: setTimeout (1)
status = sock: connect ('100.100.100.92', 55000)
if status == 1 then --- Tivi on
....v...v....
But there are some television via TCP is impossible. turn off the TV when the status remains 1.
In this case, the TCP protocol can not be used anymore. If anyone has encountered this case (Sony TV) and there are workarounds, please help me.
I am very thankful.!
Hope everyone has opinions to this problem

To determine the status of television, we use the TCP protocol. If the TV is on, the status will return to 1, otherwise it will be empty:
sock = socket.tcp ()
sock: setTimeout (1)
status = sock: connect ('100.100.100.92', 55000)
if status == 1 then --- Tivi on
....v...v....
But there are some television via TCP is impossible. turn off the TV when the status remains 1.
In this case, the TCP protocol can not be used anymore. If anyone has encountered this case (Sony TV) and there are workarounds, please help me.
I am very thankful.!
