Update MQTT version to 3.1.1 and change address to use SSL

- In main.cpp, update the MQTT version to 3.1.1 and change the address to use SSL instead of TCP.
- In app.py, create a new MQTT client using MQTTv311 protocol.
This commit is contained in:
ishak jmilou.ishak
2024-10-22 12:27:29 +02:00
parent 34cfa61257
commit 995b3858ab
2 changed files with 2 additions and 1 deletions

View File

@@ -8,6 +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)
client = mqtt.Client(protocol=mqtt.MQTTv311)
@app.route('/')
def index():