parent
df4748c03a
commit
3013a9afcc
|
@ -153,10 +153,10 @@ def mqtt_publisher(artnetUniverse):
|
||||||
def start_mqtt_publishers(universe_count):
|
def start_mqtt_publishers(universe_count):
|
||||||
used_universes = universe_count
|
used_universes = universe_count
|
||||||
print("universe count: "+str(used_universes))
|
print("universe count: "+str(used_universes))
|
||||||
universes_to_publish = range(1, used_universes + 1)
|
universes_to_publish = list(range(1, used_universes + 1))
|
||||||
# Create and start a thread for each universe
|
# Create and start a thread for each universe
|
||||||
for universe in range(universes_to_publish):
|
for universe in range(universes_to_publish):
|
||||||
threads = [threading.Thread(target=mqtt_publisher, args=(universe,))]
|
threads = [threading.Thread(target=mqtt_publisher, args=(int(universe),))]
|
||||||
|
|
||||||
for thread in threads:
|
for thread in threads:
|
||||||
thread.start()
|
thread.start()
|
||||||
|
|
Loading…
Reference in New Issue