SHA256
Feature: Funcional
This commit is contained in:
1 parent
5e55047884
commit
058aa39b9c
6 files changed
+104
-57
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user