-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
ECONNABORTED periodically on MQTT nodes (IDFGH-7981) #9492
Comments
Hi @KonssnoK, could you provide the version of idf and esp-mqtt you are using? |
@euripedesrocha Sorry my bad for forgetting ESP-IDF v4.4 which picks from |
The fix you are referring to is not backported to v4.X branch |
- Tick should be updated on connect - Dependency of system timer removed to avoid issues when updating via SNTP Closes espressif/esp-idf#9492
It really takes too much time waitting for backport fix to 4.x branches. |
Hi @AxelLin, we are aware of the long time it takes, and we are already working to improve those times. |
* Fixes keepalive calculation to use esp-timer (previously used system timer that might get updated by NTP sync and failing keepalive mechanism) * Fixes start() -> stop() -> start() client's transitions, due to wrong state of stopped client (could endup in WAIT_RECONNECT state and thus never allowed to be started again) * Update submodule: git log --oneline 60983d1dd54196b1e3f399c6f928d77256ec742a..bb9c8af9d552b608dd3aabf9617bde757a538ebe Detailed description of the changes: * Backport Moves state change when stopping the client - See merge request espressif/esp-mqtt!151 - Closes espressif/esp-mqtt#239 - Moves state change when stopping the client (espressif/esp-mqtt@af58f5f) * fix: MQTT tick not starting on connect and switch to esp_timer - See merge request espressif/esp-mqtt!146 - Closes #9492 - See commit espressif/esp-mqtt@166741f * ci: Fix CI build using public IDF images - See merge request espressif/esp-mqtt!148 - See commit espressif/esp-mqtt@530fe3a Closes #9492
I'm still waiting for the esp-idf submodule update for v4.3 branch. |
Hi @AxelLin, I'm sorry for the long waiting. We are working to merge it soon. This particular one is a bit tricky because, despite being simple, we have a change in the behavior of the component. |
The esp-mqtt idf_v4.x branch is supposed to be used for v4.x branches. |
Hi @AxelLin, idf_v4x is used for v4.x branches, but you can see that in IDF we point to different commits on that branch. IDF release branches are sometimes locked, and we need to wait for the merging window. In this particular case, there are changes in the MR that are being evaluated to back port because 4.3 and 4.4 are in different stages of their lifetime support. We are working to make it easier to have a particular mqtt version available for usage in a project using the component manager. A workaround, to not be blocked by our process, is to have a separated mqtt component in your project pointing to a convenient commit and append it to |
Improve your process, long backport time issue is a generic issue. |
Using esp32s3, mesh-networking, MQTT, 11 devices.
Devices form a network and connect individually to a MQTT Broker.
Periodically, once per hour, i see this on the terminal:
Looking at the log, i would say this happens always after an NTP synchronization, but it shouldn't influence the MQTT connection
I would expect the connection never to be dropped if not requested.
Any help on how to identify the underlying issue?
The text was updated successfully, but these errors were encountered: