This PR add the possibility to connect to a TLS enabled MQTT Broker using username and password authentication.
Fixes #136
Description
use_tls flag from CLI or setting to True when instantiating the class, will enable it. You also have the option to set tls_ca_cert to validate presented server certificate.
License Acceptance
[x] This repository is Apache version 2.0 licensed and by making this PR, I am contributing my changes to the repository under the terms of the Apache 2 license.
Type of changes
[ ] Add/update a helper script
[ ] Add/update link to an external resource like a blog post or video
[ ] Any scripts added use #!/usr/bin/env interpreter instead of potentially platform-specific direct paths (#!/bin/sh is an allowed exception)
[ ] Scripts added/updated in this PR are all marked executable.
[ ] Scripts added/updated in this PR do not have a language file extension unless they are meant to be sourced and not run standalone. No one should have to know if a script was written in bash, python, ruby or whatever. Not including file extensions makes it easier to rewrite the script in another language later without having to change every reference to the previous version.
[ ] I have confirmed that any links added or updated in my PR are valid.
This PR add the possibility to connect to a TLS enabled MQTT Broker using username and password authentication.
Fixes #136
Description
use_tls
flag from CLI or setting to True when instantiating the class, will enable it. You also have the option to settls_ca_cert
to validate presented server certificate.License Acceptance
Type of changes
Checklist
#!/usr/bin/env interpreter
instead of potentially platform-specific direct paths (#!/bin/sh
is an allowed exception)