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

MQTT connfail fix #3477

Merged
merged 1 commit into from
Dec 6, 2021
Merged

MQTT connfail fix #3477

merged 1 commit into from
Dec 6, 2021

Conversation

stromnet
Copy link
Contributor

@stromnet stromnet commented Dec 5, 2021

  • This PR is for the dev branch rather than for the release branch.
  • This PR is compliant with the other contributing guidelines as well (if not, please describe why).
  • I have thoroughly tested my contribution.
  • The code changes are reflected in the documentation at docs/*.

Noticed that cb_connect_fail_ref was not properly called sometimes, after wifi was reconnected (for example, explicit clearconfig + config). Seems DNS is resolved fine but the espconn returned -4. Since return value was ignored, the failure callback was never trigged, and LUA code could not see react properly (i.e. re-trigger connect attempt in my case)

@marcelstoer marcelstoer added this to the Next release milestone Dec 6, 2021
@marcelstoer marcelstoer merged commit b913685 into nodemcu:dev Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants