-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenSSL subscribe #58
Comments
Hi @theanhhoang, sorry for the delayed response. What you've tried is the correct approach. The only difference between the simple and openssl examples is how the socket is create/set up. It's very strange it appears the subscriber is subscribing to all topics. My guess is an application-level peice of code would be causing this. Have you made any progress with tracking down your issue? |
Received an email from @theanhhoang saying this issue was resolved. The issue ended up being |
Hi @LiamBindle, sorry for the late reply. I have checked my build and gcc -Wextra -Wall -std=gnu99 -Iinclude -Wno-unused-parameter -Wno-unused-variable -Wno-duplicate-decl-specifier -D MQTT_USE_BIO examples/openssl_subscriber.c src/mqtt.c src/mqtt_pal.c -lpthread `pkg-config --libs openssl` -o bin/openssl_subscriber In main function, I combined openssl_publisher and simple_subscriber and got something like this:
Rgs, |
Hello @theanhhoang The problem here is that you are using a very generic subscriber name, and you are also not passing the Effectively, this means that you continue on the previous session of a client named |
Hi @learn-more, Thank you so much for your help! 💯 💯 💯 |
Hi Liam,
I am working on the function for OpenSSL Subscriber. I tried combining the OpenSSL_Publisher and Simple_Subscriber to produce the function. However, there is an error that I am facing, which is Subscriber subscribes all topics, regardless which topic I have set.
Then, I want to ask that do you have any example for OpenSSL subscriber?
Thanks in advance!
The text was updated successfully, but these errors were encountered: