parent
47506bedf7
commit
b3eb6a9719
|
@ -114,7 +114,6 @@ def start_mqtt_publishers():
|
|||
mqtt_client = connect_mqtt()
|
||||
artnetBindIp = get_eth0_ip()
|
||||
artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454)
|
||||
try:
|
||||
while True:
|
||||
try:
|
||||
# Gets whatever the last Art-Net packet we received is
|
||||
|
@ -128,13 +127,9 @@ def start_mqtt_publishers():
|
|||
|
||||
# Publish the DMX value to the MQTT topic
|
||||
mqtt_client.publish(topic, str(dmxPacket))
|
||||
except Exception as e:
|
||||
print(e)
|
||||
except KeyboardInterrupt:
|
||||
artNet.close()
|
||||
sys.exit()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
if __name__ == "__main__":
|
||||
flask_thread = Process(target=flask_api)
|
||||
|
|
Loading…
Reference in New Issue