-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add example for TLS connection #7
Comments
I've managed to configure the TLS version to connect to the message broker provided by Amazon Web Services. Connectivity to AWS checks out fine with openssl command line test, however the test application only reports sending CONNECT. How can I determine the packet payload based on the debug output of sample application? |
Under the hood Flask-MQTT uses Paho-MQTT. |
I can't get mine connected, if I set TLS on True it says [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version |
Same here Edit: This did the trick for me (I'm using a HiveMQ Cloud MQTT Broker). from flask_mqtt import Mqtt, ssl
app.config['MQTT_TLS_ENABLED'] = True
app.config['MQTT_TLS_VERSION'] = ssl.PROTOCOL_TLSv1_2 # <---- SEE HERE |
No description provided.
The text was updated successfully, but these errors were encountered: