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

Support for embedded-tls? #41

Open
flyaruu opened this issue Jul 7, 2024 · 2 comments
Open

Support for embedded-tls? #41

flyaruu opened this issue Jul 7, 2024 · 2 comments

Comments

@flyaruu
Copy link

flyaruu commented Jul 7, 2024

Hi, I've been trying to get rust-mqtt to work with embedded-tls. I'm not sure if it is supported at all (only sign I found is the 'tls' feature)

Originally for an ESP32C3, but switched to std/tokio until I've got this working.

I've managed to get an encrypted connection up and running, and pass that into the rust-mqtt client, but it seems to hang in the connect_to_broker method, until it finally times out.

Maybe something doesn't get flushed properly? I can dig more, but I thought I'd reach out first.

Gist of my example: https://gist.github.com/flyaruu/71f9448474be28f0c9050fdcc86cbba8

(If I remove the TLS stuff, and pass the tcp connection straight into the mqtt_client (with a FromTokio) it works fine)

Any ideas?

@obabec
Copy link
Owner

obabec commented Jul 17, 2024

@flyaruu If I remember correctly, I have tried it with embedded tls. However, it is a long, long time ago.

@tlhenvironment
Copy link

@flyaruu , did you figure this out in the end on the ESP?

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

No branches or pull requests

3 participants