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