-
Notifications
You must be signed in to change notification settings - Fork 256
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
Problem in subscription message at esp32 client end (IDFGH-8347) #236
Comments
Hi @priya2212, |
Hi @euripedesrocha , Thank you for your message. Below is the code snippet -
And attached is the logs captured on screen. I have just added one function test in the thread and MQTT App is running. After sometime, the app stopped receiving the messages from another client (MQTT lens). Please let me know if you need more details. |
@priya2212, from the snippet you shared and the logs, I couldn't spot an issue. |
QoS - 0, tested with 1 as well. Facing same problem. Hardware - ESP32 4MB flash. |
Closing, since I couldn't reproduce. |
I am having the same issue using esp-idf 4.4.0 (planning to migrate to 5.2 soon, but need this now). Seems that subscription stops receiving messages at some point, which I cannot seem to pinpoint even with debugging on. No connection loss, and no errors popup from the mqtt_client code. To reiterate, everything works perfect for around 2-3 minutes. Publishing and messages received from subscription work perfect, then suddenly the messages from subscription stop, but the publisher continues to work flawlessly. No memory leak detect after monitoring stack and heap. I am working to try and isolate and create something reproducible. **Edit: I also noticed that esp_mqtt_client_subscribe with qos of 0 does not receive any messages. |
Dear @tuanpmt,
I am new to esp-idf environment and working over esp32 mqtt - TCP example. The example is working fine with publish and subscription of message. Now, I added one thread in the main program which is just printing on terminal every one second.
Now, when I am publishing the messages on esp32 subscribed topic( /topic/qos0) from another client -> ESP32 client randomly stops listening and not able to receive the data.
Have you faced this issue? This is normal use case, not developed any application stack yet.
Am I missing something in understanding it? It would be really great if whoever reading this can help me.
The text was updated successfully, but these errors were encountered: