speed complete

This commit is contained in:
Richard
2023-09-29 13:21:17 +02:00
parent 9ca099ead4
commit 7d1069cf2c
2 changed files with 27 additions and 9 deletions

View File

@@ -16,6 +16,11 @@ def heartbeat(s):
dur = time() - start
print(f"heartbeat {dur:.2f}")
def doublecam(s):
s.sendall(pack(">BHHH", 0x80,1,0,80))
s.sendall(pack(">BHHH", 0x80,1,0,80))
print("Dc", s.recv(1024))
def camera(s):
s.sendall(pack(">BHHH", 0x80,1,0,80))
s.sendall(b"\x20\x05snack" +pack(">I", 100000))
@@ -36,6 +41,7 @@ def readTicket(d):
heartbeat(sock())
doublecam(sock())
camera(sock())
camera2(sock())
sleep(1)