Closed sdw-jro closed 9 months ago
Hi @sdw-jro We tried to reproduce this issue with the example app. But it got connected all the time. Can you also try to check with the example app and let know if that's working. If the example app works okay, could you print available memory when the connection fails ? Another thing to try would be to check with different router and see if same is observed?
Hello @avsheth , When trying to replicate this issue again today, I noticed it was basically gone. We were able to connect to AWS consistently. The only thing that I can think of being different from a few weeks back is my development environment: I downgraded my Python from 3.11 to 3.8 (it broke compatibility with IDF v4.4 on my system) and reinstalled ESP IDF v5.
If this could be interesting for you to investigate, I can share more information. Otherwise, I will close the issue.
Hello,
We are having trouble with the library since upgrading to ESP-IDF v5.0. During the upgrade, we checked out the latest commit of the release/v3.1.x branch.
In about ~50% of connection process, the mbedtls_net_connect() function call fails. When the connection is successful, we can subscribe and post to MQTT topics.
Here is a sample failure log with lwIP socket logging enabled:
How do you recommend we proceed to debug this? Thank you.