Compare commits
No commits in common. "cb52436dcac68802d866f61ce9d9a62a2a4b3610" and "420e0b327a9962442003626eaff4e21d42036d87" have entirely different histories.
cb52436dca
...
420e0b327a
2 changed files with 2 additions and 12 deletions
|
@ -9,9 +9,6 @@ async def handle_client(websocket, path):
|
|||
print("packet connected")
|
||||
socket_connections[websocket] = ""
|
||||
|
||||
internal_count = 0
|
||||
show_4 = False
|
||||
|
||||
try:
|
||||
while True:
|
||||
print("waiting for data")
|
||||
|
@ -19,14 +16,7 @@ async def handle_client(websocket, path):
|
|||
if data == "Type?":
|
||||
await websocket.send("Automated")
|
||||
else:
|
||||
internal_count += 1
|
||||
if internal_count > 100:
|
||||
show_4 = not show_4
|
||||
internal_count = 1
|
||||
if show_4:
|
||||
await websocket.send("[1] 100:100 200:700\n[2] 250:250 750:750\n[3] 500:300 800:800\n[4] 50:150 300:600")
|
||||
else:
|
||||
await websocket.send("[1] 100:100 200:700\n[2] 250:250 750:750\n[3] 500:300 800:800")
|
||||
await websocket.send("[1] 100:100 200:700\n[2] 250:250 750:750\n[3] 500:300 800:800")
|
||||
except websockets.exceptions.ConnectionClosed:
|
||||
print("Connection closed with: ", websocket.remote_address)
|
||||
finally:
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 386e632efb5a7eaef272b00a739cbda614fe70cb
|
||||
Subproject commit f6b9c50e7ebb7b330037ab8aef3e2d58e7eef7aa
|
Loading…
Reference in a new issue