mirror of
https://github.com/korneliuszo/lumiax-controller.git
synced 2026-03-28 19:22:33 +01:00
16 lines
309 B
Python
Executable File
16 lines
309 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
|
|
import tlay2_client
|
|
import socket
|
|
|
|
conn = tlay2_client.Tlay2_out(0)
|
|
|
|
while True:
|
|
packet = conn.recv()
|
|
if packet == b'[SUBSCRIBED]\n':
|
|
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
|
|
s.connect(("127.0.0.1",4444))
|
|
s.send(b"reset\n")
|
|
s.close()
|