randomsync / robotframework-mqttlibrary

MQTT Keyword Library for Robot Framework
Apache License 2.0
25 stars 30 forks source link

TLS support for subscribing #14

Open ThePersistentTester opened 5 years ago

ThePersistentTester commented 5 years ago

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

itsanjan commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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.