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

fix: connect failed - no CPU time for IP stack #1050

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

devmirek
Copy link

@devmirek devmirek commented Apr 3, 2024

ESP32-C3 is not able to receive CONNACK packet because the waiting loop did not have any delay to let other tasks to process incoming TCP packet data.

@EmbeddedDevver
Copy link

Better use yield().
Also same as #567 and #901

@devmirek
Copy link
Author

devmirek commented Apr 11, 2024

Better use yield(). Also same as #567 and #901

I would prefer yield() as well. I have tested it with yield() first. It didn't work. Small delay was the only option that reliably solved it (ESP32-C3 with WiFiClientSecure). It was a very tricky issue because sometimes it was successfully reconnected (CONNACK was received after reconnection) but the first connect always failed and sometimes the next reconnects randomly failed as well - always due to CONNACK timeout.

@devmirek devmirek changed the title fix: connect failed - no time for IP stack fix: connect failed - no CPU time for IP stack Apr 15, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants