Feature: Funcional

This commit is contained in:
semarnat committed 2026-05-20 20:45:24 -06:00
1 parent 5e55047884
commit 058aa39b9c
6 files changed
+104 -57

No files matched your search

+4 -1
View File
@@ -3,12 +3,13 @@ import time
from websocket import create_connection
ws = create_connection("ws://192.168.0.220:81")
i = 0
print("Conectado")
try:
while True:
data = ws.recv()
i += 1
if isinstance(data, bytes):
print(f"BIN: {list(data)}")
@@ -16,6 +17,8 @@ try:
else:
print(f"TXT: {data}")
print(f"DEBUG {i}")
except KeyboardInterrupt:
print("Cerrando conexión")