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

@@ -22,7 +22,7 @@ int main() {
connOpts.set_clean_session(true);
connOpts.set_user_name("ishak");
connOpts.set_password("kobuki");
connOpts.set_mqtt_version(MQTTVERSION_5); // Stel de MQTT-versie in (bijv. MQTT 5.0)
connOpts.set_mqtt_version(MQTTVERSION_3_1_1); // Voor MQTT 3.1.1
try {
std::cout << "Verbinden met broker..." << std::endl;