From 3ea73d0438ac73f589a46e75cd39820e7c42fc7d Mon Sep 17 00:00:00 2001 From: Noel Graf Date: Thu, 21 Apr 2022 12:56:39 +0200 Subject: [PATCH] fix(pubsub): Switching the MQTT library to upstream. (cherry picked from commit acaa87d1c7b9fb649fdf8f29b36536952b88b3b2) --- examples/pubsub/tutorial_pubsub_mqtt_publish.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/examples/pubsub/tutorial_pubsub_mqtt_publish.c b/examples/pubsub/tutorial_pubsub_mqtt_publish.c index fbc9df314..db39f2a50 100644 --- a/examples/pubsub/tutorial_pubsub_mqtt_publish.c +++ b/examples/pubsub/tutorial_pubsub_mqtt_publish.c @@ -40,13 +40,16 @@ * options is provided, the system's default certificate location will be used. */ -#include "open62541/server.h" -#include "open62541/server_config_default.h" +#include +#include +#include + #include "ua_pubsub.h" -#include "ua_network_pubsub_mqtt.h" -#include "open62541/plugin/log_stdout.h" + #include +#include + #define CONNECTION_NAME "MQTT Publisher Connection" #define TRANSPORT_PROFILE_URI "http://opcfoundation.org/UA-Profile/Transport/pubsub-mqtt" #define MQTT_CLIENT_ID "TESTCLIENTPUBSUBMQTT" @@ -68,7 +71,7 @@ #endif // Uncomment the following line to enable MQTT via TLS for the example -// #define EXAMPLE_USE_MQTT_TLS +//#define EXAMPLE_USE_MQTT_TLS #ifdef EXAMPLE_USE_MQTT_TLS #define USE_TLS_OPTION_NAME "mqttUseTLS"