Not able to use PubSub with MQTT + JSON Secure connection

56 views
Skip to first unread message

Chirantan Joshi

unread,
Jul 1, 2024, 9:17:52 AMJul 1
to open62541
Hi Team,
I am Using latest version of Open62541 (v1.4.1).

I have built it using following options:

cmake.exe .. -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DUA_BUILD_EXAMPLES=ON -DUA_ENABLE_PUBSUB=ON -DUA_ENABLE_PUBSUB_MQTT=ON -DUA_ENABLE_MQTT=ON -DUA_ENABLE_JSON_ENCODING=ON -DUA_ENABLE_DEBUG_SANITIZER=OFF -DUA_ENABLE_DISCOVERY_SEMAPHORE=OFF -DUA_ENABLE_HARDENING=OFF -DUA_ENABLE_NODEMANAGEMENT=OFF -DUA_ENABLE_NODESET_COMPILER_DESCRIPTIONS=OFF -DUA_ENABLE_PARSING=ON -DUA_ENABLE_PUBSUB_DELTAFRAMES=OFF -DUA_ENABLE_PUBSUB_INFORMATIONMODEL=ON -DUA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS=OFF -DUA_ENABLE_STATUSCODE_DESCRIPTIONS=OFF -DUA_ENABLE_SUBSCRIPTIONS=ON -DUA_ENABLE_SUBSCRIPTIONS_EVENTS=OFF -DUA_ENABLE_TYPEDESCRIPTION=ON -DUA_FORCE_WERROR=OFF -DUA_MSVC_FORCE_STATIC_CRT=OFF -DUA_ENABLE_ENCRYPTION_TPM2=OFF -DUA_LOGLEVEL=400 -DUA_ENABLE_ENCRYPTION=OPENSSL -DUA_ENABLE_PUBSUB_ENCRYPTION=ON


I want to use PubSub feature with MQTT + JSON and use username-password based authentication for connection with MQTT broker.

I tried uncommenting line 22 in /examples/pubsub/tutorial_pubsub_mqtt_subscribe.c file:

Example_USE_MQTT_LOGIN.png

But this is not working. I am not able to connect with the broker.
Is there any other option needs to be enabled or anything I am doing wrong here?
Please suggest...

Waiting for your reply...

Thanks,
Chirantan

Chirantan Joshi

unread,
Jul 3, 2024, 10:22:45 AMJul 3
to open62541, Julius Pfrommer
Hi Team,

Any Updates?

Chirantan Joshi

unread,
Jul 8, 2024, 1:47:13 AMJul 8
to open62541
Hi Team,

Do we have any update for the above query?
I am waiting for the reply.

Thanks,
Chirantan

Chirantan Joshi

unread,
Jul 11, 2024, 1:56:09 AM (14 days ago) Jul 11
to open62541, Julius Pfrommer
Hi Julius,
Is there any update on above query?

Thanks,
Chirantan
Reply all
Reply to author
Forward
0 new messages