This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Check the status of television in LM3!
#1
please help me!
Hope everyone has opinions to this problem  Sad !
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.!  Heart
Reply


Messages In This Thread
Check the status of television in LM3! - by phongvucba - 14.07.2016, 16:15

Forum Jump: