added mqtt_client loop

This commit is contained in:
2024-10-23 14:22:48 +02:00
parent 481ae4f2c3
commit d768be0b18

View File

@@ -8,7 +8,7 @@ mqtt_client = mqtt.Client()
# Verbinding maken met de Raspberry Pi (broker)
mqtt_client.username_pw_set("ishak", "kobuki")
mqtt_client.connect("ishakpi.ddns.net", 1883, 60)
mqtt_client.loop_forever()
@app.route('/')
def index():
return render_template('index.html')