parent
1c515de7cc
commit
ef147dd956
|
@ -109,10 +109,10 @@ def connect_mqtt():
|
|||
return client
|
||||
|
||||
def update_tube_index():
|
||||
global result
|
||||
while True:
|
||||
cur = db.cursor()
|
||||
cur.execute("SELECT mac_address, universe, dmx_address FROM tubes")
|
||||
global result
|
||||
result = cur.fetchall()
|
||||
cur.close()
|
||||
print("Updated index: "+str(result))
|
||||
|
|
Loading…
Reference in New Issue