Skip to content
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

TLS support for subscribing #14

Open
ThePersistentTester opened this issue Aug 21, 2019 · 4 comments
Open

TLS support for subscribing #14

ThePersistentTester opened this issue Aug 21, 2019 · 4 comments

Comments

@ThePersistentTester
Copy link

ThePersistentTester commented Aug 21, 2019

Hi,

The broker that we are using needs TLS ca_certs, cert, keyfile. I dont see any option in Connect, subscribe/subscribe and validate keywords that lets me specify these anywhere (unlike Publish Single).

I can also see that https://pypi.org/project/paho-mqtt/#single shows 2 functions for subscribe simple and callback, but https://github.com/randomsync/robotframework-mqttlibrary/blob/master/src/MQTTLibrary/MQTTKeywords.py doesnt

Is it possible to add this option, because using just publish is of no use if we are not able to subscribe and retrieve what we we have published? Thanks

@ThePersistentTester ThePersistentTester changed the title TLS support while subscribing TLS support for subscribing Aug 21, 2019
@itsanjan
Copy link

Well you can modify the existing connect function inside the library.
Let me know if you need it, i can revert back with the code !

@ThePersistentTester
Copy link
Author

Thank you, Unfortunately, I don't have enough support from the dev team @ my workplace. Is it possible for you to help me with this? Thanks!

@Thirukumaran-S-S
Copy link

I also have the same problem, I need to pass 3 certs file inorder to connect to MQTT broker.
Can you give me the code for that?

@randomsync
Copy link
Owner

I was wondering how I missed adding the simple() keyword, but then realized that the Subscribe module was added after majority of the code for this library was written and I haven't had time to add any new features since then.

I can add it, however pull requests are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants