Comments (3)
Hi Paul,
related to the line if (client->mqtt_state.message_length_read >= client->mqtt_state.message_length)
:
- it is supposed to process only related part of the data, further data will be processed in the next iteration of publish.
- Some refactoring were made to this part of the code but at this moment it resides on an
idf
branch, but will be merged to master once IDFv3.2 is released.
Can you please check if your issue persists when switching to the latest IDF? (no need to add esp-mqtt)?
Thank you,
David
from esp-mqtt.
Hi everybody,
I have the same issue, even with IDFv3.3.
Maybe the difference is that I subscribe calling the esp_mqtt_client_subscribe
function individually for each topic, so, as a workaround, what I do is that I use esp_mqtt_client_config_t
's user_context
with boolean variables, and, basically :
- I subscribe to the first topic.
- I do nothing until the first retained message is received.
- I subscribe to the second topic.
- I receive the second retained message.
It requires more code and I have to handle the case when there is no retained message in the first topic (otherwise, I will never subscribe to the second topic), but at least it works. ;-)
Paul
from esp-mqtt.
Resolved in these commits:
db64b79
cf5b8ed
d4b6655
from esp-mqtt.
Related Issues (20)
- Not compatible with CPP, IDF 5.0 (IDFGH-9334) HOT 5
- How can I detect Expired certificates (IDFGH-9420) HOT 3
- ESP-IDF won't connect to MQTT broker local gateway IP (IDFGH-9465) HOT 4
- Init multiple network components in separate network interfaces (IDFGH-9466) HOT 2
- MQTT 5 Bug - Checks packet header but there is none (IDFGH-9603) HOT 1
- esp_mqtt_client_publish() does not return -1 for QOS0 when disconnect (IDFGH-10129) HOT 1
- Possible bug on mqtt5 client when QoS>0 (IDFGH-10436) HOT 4
- MQTT QOS2 not resend PUBREC ACKNOWLEDGED message (IDFGH-10609)
- Qos 2 wrong implementation (IDFGH-10613) HOT 5
- Last Will Message pushed when I reconnect (IDFGH-10970) HOT 1
- esp_mqtt_set_config ignores buffer_size (IDFGH-11058) HOT 2
- AUTH command not supported (IDFGH-11745)
- MQTT data persistence (QOS 1 and 2) (IDFGH-12616) HOT 3
- Retransmission of QOS0 (IDFGH-12829) HOT 1
- Connection aborts when mqtt_resend_queued fails (IDFGH-12830) HOT 9
- Expired messages only delete when connected (IDFGH-12831)
- Memory Leak when using esp_mqtt_client_publish (IDFGH-12840) HOT 3
- User Error (IDFGH-13164)
- TCP_NODELAY (IDFGH-13350) HOT 2
- MQTT outbox dequeuing mechanism for esp_mqtt_client_enqueue (IDFGH-13400) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-mqtt.