mirror of
https://github.com/open62541/open62541.git
synced 2025-06-03 04:00:21 +00:00
fix(pubsub): Switching the MQTT library to upstream.
(cherry picked from commit acaa87d1c7
)
This commit is contained in:
parent
ff0931412d
commit
3ea73d0438
@ -40,13 +40,16 @@
|
|||||||
* options is provided, the system's default certificate location will be used.
|
* options is provided, the system's default certificate location will be used.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "open62541/server.h"
|
#include <open62541/plugin/log_stdout.h>
|
||||||
#include "open62541/server_config_default.h"
|
#include <open62541/server.h>
|
||||||
|
#include <open62541/server_config_default.h>
|
||||||
|
|
||||||
#include "ua_pubsub.h"
|
#include "ua_pubsub.h"
|
||||||
#include "ua_network_pubsub_mqtt.h"
|
|
||||||
#include "open62541/plugin/log_stdout.h"
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
|
#include <open62541/plugin/pubsub_mqtt.h>
|
||||||
|
|
||||||
#define CONNECTION_NAME "MQTT Publisher Connection"
|
#define CONNECTION_NAME "MQTT Publisher Connection"
|
||||||
#define TRANSPORT_PROFILE_URI "http://opcfoundation.org/UA-Profile/Transport/pubsub-mqtt"
|
#define TRANSPORT_PROFILE_URI "http://opcfoundation.org/UA-Profile/Transport/pubsub-mqtt"
|
||||||
#define MQTT_CLIENT_ID "TESTCLIENTPUBSUBMQTT"
|
#define MQTT_CLIENT_ID "TESTCLIENTPUBSUBMQTT"
|
||||||
@ -68,7 +71,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Uncomment the following line to enable MQTT via TLS for the example
|
// 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
|
#ifdef EXAMPLE_USE_MQTT_TLS
|
||||||
#define USE_TLS_OPTION_NAME "mqttUseTLS"
|
#define USE_TLS_OPTION_NAME "mqttUseTLS"
|
||||||
|
Loading…
Reference in New Issue
Block a user