loopy loop, doesn't work, too many loops

This commit is contained in:
Mathieu Moran
2023-11-28 23:04:06 -05:00
parent 82f0c92e6c
commit 00e14db023
11 changed files with 19 additions and 20 deletions
+3 -1
View File
@@ -10,7 +10,8 @@ os_type = ["Linux","Windows"]
def connect_event():
print('Client connected')
print('Getting OBD status...')
uptime()
socketio.emit("connect", "connected with server")
# uptime()
def uptime():
thread = Thread(target=loop_uptime(os_type[1]))
@@ -37,6 +38,7 @@ def loop_uptime(os):
while loop == True:
time.sleep(1)
socketio.emit("rpi_uptime", "1")
print("[+] sent uptime windows (1) packet")