SHA256
main.py -> root
This commit is contained in:
1 parent
b920bdf55c
commit
f5a98d9e46
1 file changed
+1
-1
-30
@@ -1,30 +0,0 @@
|
||||
# Aquitectura: 3 hilos -> Wwebsocket -> Procesamiento -> Visualización
|
||||
|
||||
# Base: Hilos y datos buffer de datos compartidos
|
||||
import queue
|
||||
import threading
|
||||
|
||||
from cliente_ws import websocket_cliente
|
||||
|
||||
# Datos globals
|
||||
ip_server = "10.42.0.100:81"
|
||||
|
||||
# Cola de datos compartidos
|
||||
raw_data = queue.Queue()
|
||||
data_clean = queue.Queue()
|
||||
|
||||
|
||||
def debug_print():
|
||||
while True:
|
||||
raw = raw_data.get()
|
||||
print(raw)
|
||||
|
||||
|
||||
hilo_1 = websocket_cliente(raw_data, ip_server)
|
||||
hilo_2 = threading.Thread(target=debug_print)
|
||||
|
||||
hilo_1.start()
|
||||
hilo_2.start()
|
||||
|
||||
hilo_1.join()
|
||||
hilo_2.join()
|
||||
Reference in new issue
Block a user