Addded MQTT event loop start
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2020-09-19 18:05:18 +02:00
parent b788695dc5
commit f533a36196

View File

@ -81,4 +81,5 @@ if __name__ == "__main__":
mqtt = MQTT() mqtt = MQTT()
mqtt.topic = config.MQTT_TOPIC mqtt.topic = config.MQTT_TOPIC
mqtt.connect() mqtt.connect()
mqtt.client.loop_start() # Start MQTT event loop on a different thread
setup_rabbit(mqtt) setup_rabbit(mqtt)